Search:

Type: Posts; User: Junky

Search: Search took 0.07 seconds.

  1. Replies
    10
    Views
    25,592

    Re: How do I loop a switch Statement?

    Use a boolean.

    boolean foo = true;
    while(foo) {
    //stuff
    if( x == 4) {
    foo = false;
    }
    }
  2. Replies
    10
    Views
    25,592

    Re: How do I loop a switch Statement?

    What you can do is place your switch inside a while loop => while(flag). Then inside the case 4 set the flag to false.
Results 1 to 2 of 2