Search:

Type: Posts; User: ineedahero

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,109

    Re: Convert int to a bool

    I guess I'm just used to C++ where you could say 'while(integer)'

    I feel like that's cleaner than always saying 'while (integer == 1)'.....
  2. Replies
    3
    Views
    1,109

    Convert int to a bool

    How do I make this work?



    int i = 0;

    do
    {
    System.out.println("blah blah blah");
    Scanner input = new Scanner(system.in);
Results 1 to 2 of 2