Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,060

    Re: determining a prime number

    The variable on the left of the = is type char.
    The value on the right of the = is a String.
    Those types are not compatible for an assignment.
    Change the variable on the left to a String.
  2. Replies
    7
    Views
    1,060

    Re: determining a prime number

    The if statement's condition need to be enclosed in ()s. The () must surround ALL of the sub conditions.
  3. Replies
    7
    Views
    1,060

    Re: determining a prime number

    F:\PrimeNumber.java:41: error: cannot find symbol
    again = kbd.charAt(0);
    ^
    symbol: method charAt(int)
    location: variable kbd of type Scanner
    The Scanner class...
  4. Replies
    7
    Views
    1,060

    Re: determining a prime number

    Please copy the full text of the error messages and paste it here.
Results 1 to 4 of 4