Search:

Type: Posts; User: Markusovich_

Search: Search took 0.18 seconds.

  1. Re: Trying to read objects from file into ArrayList

    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...
  2. Re: Trying to read objects from file into ArrayList

    I did

    This is my output:

    details=[Simon, Markus, 0, 0, 0]
    details=[]
  3. Re: Trying to read objects from file into ArrayList

    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...
  4. Re: Trying to read objects from file into ArrayList

    If you look at line 95, I made the size of the array to hold 5 elements.

    String[] details = new String[4];
  5. Trying to read objects from file into ArrayList

    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...
Results 1 to 5 of 5