Search:

Type: Posts; User: Hisma

Search: Search took 0.07 seconds.

  1. Replies
    5
    Views
    876

    Re: Error in Java program

    you also defined name as an int at the beginning. It should be a String name, not int name.
  2. Replies
    5
    Views
    876

    Re: Error in Java program

    The user is prompted to enter a name, but you're telling the scanner to expect an int.

    Should be name = input.next() or input.nexLine()
Results 1 to 2 of 2