Search:

Type: Posts; User: depi

Search: Search took 0.24 seconds.

  1. Re: Reading from a txt file into 3 arraylists and save it as double

    I have solved the problem now, I didn't declare the array lists properly.

    Thank you so much for all your help!
  2. Re: Reading from a txt file into 3 arraylists and save it as double

    When i write it I get this message


    run:
    theLine=[1, 622803, 6.1]
    Exception in thread "main" java.lang.NullPointerException
    at pocp.dataIn.readFile(dataIn.java:40)
    at...
  3. Re: Reading from a txt file into 3 arraylists and save it as double

    Line 38 is


    chlData[0].add(Double.parseDouble(theLine[0]));

    It did write out the values from value "line" before line 38 at it actually snaps up the correct numbers. And when I print out the...
  4. Re: Reading from a txt file into 3 arraylists and save it as double

    Hmm, i tried to reply but the message got lost. Trying again.

    The program compiles ok but the error occurs when i execute it. Here's the error messages.
    "run:
    Exception in thread "main"...
  5. Reading from a txt file into 3 arraylists and save it as double

    Here's my code so far, as I understand it it doesn't succeed reading in the numbers,

    I have a txt file which is tab delimited, in 3 columns and a lot of rows, e.g
    1 23 343
    2 34 355
    3 31 435...
Results 1 to 5 of 5