I have file with this specific format:
0 2 4 0 1 A 0 5 B 1 1 A 1 3 B 2 6 A 2 4 B 3 6 A 3 4 B 4 6 A 4 4 B 5 1 A 5 5 B 6 6 A 6 2 B
- line 1 = start state
- line 2 = accept state
- line 3 - n = transition table
- 1st row = state in
- 2nd row = state out
- A,B = symbol
How can my FileReader in Java read these file into 5 different ArrayLists (start state, final state, state in, state out and symbol)?