Question: Program java. have the following data from my text file: Tile 1: B,B,Y,O,P,G Tile 2: O,B,G,Y,P,Y Tile 3: P,G,B,R,B,Y Tile 4: O,B,P,O,Y,G Tile 5: O,R,O,B,P,R
Program java.
have the following data from my text file:
Tile 1: B,B,Y,O,P,G Tile 2: O,B,G,Y,P,Y Tile 3: P,G,B,R,B,Y Tile 4: O,B,P,O,Y,G Tile 5: O,R,O,B,P,R
Tile 6: R,Y,R,O,P,B Tile 7: O,G,R,O,G,G
How can I split each tile into 7 separate character arrays and print them individually in java.
Please show code and steps.
Goal: to separate the data from the text file into 7 separate arrays meaning for example Tile 1: B,B,Y,O,P,G is in char [] 1, Tile 2: O,B,G,Y,P,Y is in char [] 2, etc.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
