I have a text file that looks like this 1Johnfalse 2Bobfalse
I have a text file that looks like this:
1:John:false
2:Bob:false
3:Tim:false
How could you create an ArrayList from the text file for each line?
Write a java program with a student class entity added.
Solution
Please find the required program along with its output. Please see the comments against each line to understand the step.
-------------------------------------------------------
OUTPUT:
1:John:false
2:Bob:false
3:Tim:false
