Search:

Type: Posts; User: syedbhai

Search: Search took 0.07 seconds.

  1. Replies
    20
    Views
    1,550

    Re: do-while error

    Hi,
    After the statement setValueAns = setValue.charAt(0);

    Syed.
  2. Replies
    20
    Views
    1,550

    Re: do-while error

    Junky,
    The loop condition is perfect. It will not stop because of YES.

    Haiz,
    I discovered the problem in your code. Scanner class object has one strange behavior. After invoking next()...
  3. Replies
    20
    Views
    1,550

    Re: do-while error

    Guys,
    I have executed the following piece of code:

    public static void main(String str[]) {
    try {
    Scanner s=new Scanner(System.in);
    String...
  4. Replies
    20
    Views
    1,550

    Re: do-while error

    Hikaros,
    Before making your comments about string comparison you should have first asked Haiz to show the declarations of the variable used in the program.
    One the of the variables he is using is...
Results 1 to 4 of 4