Search:

Type: Posts; User: curmudgeon

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    2,001

    [SOLVED] Re: While loop won't allow variable to change

    Glad you've got it working!
  2. Replies
    13
    Views
    2,001

    [SOLVED] Re: While loop won't allow variable to change

    What errors?
  3. Replies
    13
    Views
    2,001

    [SOLVED] Re: While loop won't allow variable to change

    One thing you should consider, after each in.nextInt(); call in.nextLine(); to swallow the end of line token. This will prevent the Scanner object from swallowing it when you don't want it to, like...
  4. Replies
    13
    Views
    2,001

    [SOLVED] Re: While loop won't allow variable to change

    That code that is inside of the while loop block is the code that will be repeated. Now look to see where you ask for the troop name? Is it inside of the while loop block or before it?
Results 1 to 4 of 4