Question: This code is for java and should be simple with updated java standards I have this text file: R 1: &,&,$,O,P,G R 2: O,&,G,$,P,$ R

This code is for java and should be simple with updated java standards

I have this text file:

R 1: &,&,$,O,P,G R 2: O,&,G,$,P,$ R 3: P,G,$,*,&,$ R 4: O,&,P,O,$,G R 5: O,#,O,&,P,& R 6: #,$,#,O,P,B R 7: O,G,#,O,G,G

You can think of it as a matrix with 7 rows and 6 columns where R row 1 is the center. In this code, the rows should be char arrays.

I need to create a class that will take this text file and re-arrange the elements of the rows where each element matches an element from another row, There should be at least one solution

Once a solution is found it should write an output labeling each new R row positions if no solution is found please write an output that states that. Below is a picture where there is at least two elements not in sync, one is in red and the other is in purple. Please write comments of each step of the class created. Thank you

This code is for java and should be simple with updated java

Problem.txt - Notepad File Edit Format View Help I 1:&&,$,0,P,G I 2: 0, & GSP,$ T 3: P, 9*,&, $ T 4: 0,&,P,0,$, T 5: 0,#,0,&,P,& 1 6: #,$,#,0,P,B 17: 0,4,#,0,G,G Problem.txt - Notepad File Edit Format View Help I 1:&&,$,0,P,G I 2: 0, & GSP,$ T 3: P, 9*,&, $ T 4: 0,&,P,0,$, T 5: 0,#,0,&,P,& 1 6: #,$,#,0,P,B 17: 0,4,#,0,G,G

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!