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 FileNotFoundException private static BigRational sum(Arrahist
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
