Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. Replies
    18
    Views
    1,687

    [SOLVED] Re: Java class Person: with friend_data.txt issue:

    Does post#18 belong in this thread? Its contents don't match anything posted here.

    Read the API doc for the printf() method to see how to code it.
  2. Replies
    18
    Views
    1,687

    [SOLVED] Re: Java class Person: with friend_data.txt issue:

    The println statement should use the variable: line NOT the String "line". Remove the "s so the value of line is printed. See post#14

    The idea of debugging is to see what the computer sees when...
  3. Replies
    18
    Views
    1,687

    [SOLVED] Re: Java class Person: with friend_data.txt issue:

    I was referring to the variable in the code named: line
    It is defined here:

    String line = in.nextLine();
  4. Replies
    18
    Views
    1,687

    [SOLVED] Re: Java class Person: with friend_data.txt issue:

    The String: "an ID" should be changed to identify which array is being printed.

    The output looks like the first results of split() had 3 elements and the second one had 0.
    What is in the...
  5. Replies
    18
    Views
    1,687

    [SOLVED] Re: Java class Person: with friend_data.txt issue:

    Same problem as before. This time on line 37.

    The contents of the println() statement I posted MUST be changed to match the name of the array in the code. It should be placed immediately after the...
  6. Replies
    18
    Views
    1,687

    [SOLVED] Re: Java class Person: with friend_data.txt issue:

    That is a runtime error not an error from the compiler.
    It says the code at line 36 used an index into an array that was past the end of the array. The array looks like it has less than 2 elements....
  7. Replies
    18
    Views
    1,687

    [SOLVED] Re: Java class Person: with friend_data.txt issue:

    Copy the full text of the error messages and paste it here. Text can not be copied from images when making a response.
    Besides the image is too small to read.
  8. Replies
    18
    Views
    1,687

    [SOLVED] Re: Person Class: with friend data text input compile error.

    Please explain. Copy the full text of the error messages and paste it here.

    Threads merged.
Results 1 to 8 of 8