Question: Given the text file courses.txt that has courses and Ids of students in the courses. Each line has a course followed by Ids of

Given the text file "courses.txt" that has courses and Ids of students in the courses. Each line has a course followed by Ids of students in the course.
Sample text file "courses.txt":
\table[[ICS104,1146030180,],[ICS108,252205370062660,],[MATH101,1146030180,],[MATH102,252205370062660,],[PHYS101,1146025220,],[PHYS102,301805370062660,]]
Write a java program that displays on the console the Ids of students and their courses as shown below (both Ids and courses are ordered):
Console Output (varies depending on the contents of the file):
\table[[Id Courses],[11460[ICS104, MATH101, PHYS101]],[25220[ICS108, MATH102, PHYS101]],[30180[ICS104, MATH101, PHYS102]],[53700[ICS108, MATH102, PHYS102]],[62660[ICS108, MATH102, PHYS102]]]
Note:
Your program should be general.
Can you do step by step java program for this
Given the text file "courses.txt " that has

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 Programming Questions!