Question: In Java: * Read in a txt file titled equivalence.txt (contents of the file are below). ....contents of equivalence.txt: 1, 20; 21, 40 1,10; 11,
In Java:
* Read in a txt file titled "equivalence.txt" (contents of the file are below).
....contents of "equivalence.txt":
1, 20; 21, 40
1,10; 11, 30
1,6; 7, 13; 14, 25
1,30; 31,40; 41,60; 61,100
1,50
* For each row in the file, sets of ranges of numbers are separated by a ";". For each set in the row, get the min and max and place it into it's respective variable. For example, row 1 set 1 in the given data has a min of 1 and a max of 20. Row 1 set 2 has a min of 21 and a max of 40.
int row1Set1min, row1Set1max, row1Set2min, row1Set2max, row2Set1min, row2Set1max, row2set2min, row2Set2max, row3Set1min, row3Set1max, row3Set2min, row3Set2max, row3Set3min, row3Set3max, row4Set1min, row4Set1max, row4Set2min, row4Set2max, row4Set3min, row4Set3max, row4set4min, row4Set4max,row5Set1min, row5Set1max
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
