Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,239

    Re: Beginning java help

    Print out the String's contents and length so you can see what the computer sees when it executes the code.
  2. Replies
    7
    Views
    1,239

    Re: Beginning java help

    At line 122 the program used a value of -1 in a call to the substring() method.
    Check the code to see why it used an invalid value with substring().
    The code should test the value before using it....
  3. Replies
    7
    Views
    1,239

    Re: Beginning java help

    Please post the current version of the code.
    Also copy and paste here the contents of the console from when you execute the code that shows the problem.
    On windows: To copy the contents of the...
  4. Replies
    7
    Views
    1,239

    Re: Beginning java help

    At line 40 the Scanner class's nextInt() method tried to read some data that could not be converted to an int value. The user must be careful to enter the correct data.
    Also the program should...
Results 1 to 4 of 4