Question: Write a java code to read a file ( by scanner ) of comma separated integers in a txt file and sort them in descending

Write a java code to read a file (by scanner) of comma separated integers in a txt file and sort them in descending order. The integers in the txt file should be saved as an int array. There should be 2 methods a side from the main, one to sort and one to find the max. The max array should return a value to sort and the input should be from the sort method. The values to be sorted in the sort method should come from the int array list from the txt file. The main method should call the sort method and receive and print the sorted array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!