Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Thread: Input into array.

    by Norm
    Replies
    22
    Views
    2,012

    Re: Input into array.

    He's either confused or ???

    You can use numeric operators: ==, <, > etc with char values to compare them.
  2. Thread: Input into array.

    by Norm
    Replies
    22
    Views
    2,012

    Re: Input into array.

    @Mr.777 Can you post code that does that?
  3. Thread: Input into array.

    by Norm
    Replies
    22
    Views
    2,012

    Re: Input into array.

    A call to nextLine() will read the newline out of the buffer.
  4. Thread: Input into array.

    by Norm
    Replies
    22
    Views
    2,012

    Re: Input into array.

    What you are seeing is what the Scanner class does when it has a newline character left in its buffer after you entered a line and pressed.Enter. The next() method does NOT read the newline character...
  5. Thread: Input into array.

    by Norm
    Replies
    22
    Views
    2,012

    Re: Input into array.

    Add some println statements that print out the values of all the variables used to control the loop and to show what was read. Use a small input file for testing. Execute the code and look at the...
Results 1 to 5 of 5