That's the problem, it does not read the next two lines. It only reads the first line, and I want to get it to read ALL of the lines in the file. And put all of those objects into an ArrayList, so...
Type: Posts; User: Markusovich_
That's the problem, it does not read the next two lines. It only reads the first line, and I want to get it to read ALL of the lines in the file. And put all of those objects into an ArrayList, so...
I did
This is my output:
details=[Simon, Markus, 0, 0, 0]
details=[]
I fixed the code to say 4 elements instead of 5.
This line only returns the first object I have in the file:
System.out.println("details="+ java.util.Arrays.toString(details));
Does...
If you look at line 95, I made the size of the array to hold 5 elements.
String[] details = new String[4];
I am working on my own personal project where you keep a record of Player objects in a file. I have created a way create a new file and add Player objects to it, or open an existing file and add...