Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    1,516

    Re: Whats wrong with my looping?

    What do you see when you add this print statement to the code just before the while() test?
    System.out.println("cond=" + (a != 'y' || a != 'Y' || a != 'n' || a != 'N') + " for a=" + a);
  2. Replies
    6
    Views
    1,516

    Re: Whats wrong with my looping?

    An easy way to see what the results of a large condition like you are using is to print it:
    System.out.println("cond=" + (a != 'y' || a != 'Y' || a != 'n' || a != 'N'));

    Put the above just before...
Results 1 to 2 of 2