Question: 3. (1.5 points) Write a program that reads a data file containing rational numbers, one per line, stores the numbers in an ArrayList, removes any

3. (1.5 points) Write a program that reads a data file containing rational numbers, one per line, stores the numbers in an ArrayList, removes any duplicates, and then outputs the sum. Note: use BigRational from java.math package and follow the following class outline: class Rational Number Tester__ public static void main (String [] args) throws FileNat ExundException private static BigRational sum(Arrannhist
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
