Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    1,689

    Re: Why won't this code loop?

    while(yn = "y"){ // this is there my loop starts
    The while statement requires a boolean value inside of the ().
    Your code has an assignment statement inside of the ()s that evaluates to a String.
    ...
  2. Replies
    5
    Views
    1,689

    Re: Why won't this code loop?

    Please post the code that created the error message.
  3. Replies
    5
    Views
    1,689

    Re: Why won't this code loop?

    Use the equals method to compare Strings, not the == operator.
Results 1 to 3 of 3