Search:

Type: Posts; User: rsala004

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    3,444

    Re: new program (lotto.class)

    another good revision, for cleaner code? (btw i also used to program like that...using ints as 'on/off' toggles to signify things, but i try to avoid it.

    Here we will redo the last while loop.

    ...
  2. Replies
    7
    Views
    3,444

    Re: new program (lotto.class)

    if (TotalNumbers < 2) {
    System.out.println ("error: Total number can not be less than 2");
    done = done +1;
    } else if (UserNumber > TotalNumbers){
    System.out.println ("error: your number can't be...
Results 1 to 2 of 2