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

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 p

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site