Search:

Type: Posts; User: Norm

Search: Search took 0.21 seconds.

  1. Replies
    23
    Views
    900

    Re: From txt file to array.

    Use an if statement to detect the desired values
    and a counter to count them.
  2. Replies
    23
    Views
    900

    Re: From txt file to array.

    Work on one problem at a time

    Please copy the full text of the error message and paste it here. It has important info about the error.
  3. Replies
    23
    Views
    900

    Re: From txt file to array.

    What does that mean?
    What is printed when you print the values of all the variables used on the line where the NPE happens?
    Something must print if the statement is executed. Be sure to put the...
  4. Replies
    23
    Views
    900

    Re: From txt file to array.

    Did you find the variable with the null value?
    To find it, Add some print statements to print out the value of all the variables used on line 35 where the NPE happened.



    A value of 0 is not a...
  5. Replies
    23
    Views
    900

    Re: From txt file to array.

    What variable has the null value? How did the variable get the null value?
  6. Replies
    23
    Views
    900

    Re: From txt file to array.

    That String has a leading space which is not a valid numeric digit. Use the String class's trim method to strip off leading/trailing spaces.
  7. Replies
    23
    Views
    900

    Re: From txt file to array.

    Please copy the full text of the error message and paste it here. It has important info about the error.
  8. Replies
    23
    Views
    900

    Re: From txt file to array.

    Add some print statements in all of the methods and loops to show where the program is executing.
  9. Replies
    23
    Views
    900

    Re: From txt file to array.

    Please explain what happens when you compile and execute the program.
    If there are error messages, copy the full text and paste it here.
Results 1 to 9 of 9