Search:

Type: Posts; User: trueacumen

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    15,698

    Re: User Input Loop

    Agreed, I would suggest the same for all cases like


    In such case u don't end up doing

    -1 = i, but i = -1 would have messed up things for you

    Acumen,
    Lucid forums
  2. Replies
    7
    Views
    15,698

    Re: User Input Loop

    BTW,

    do in.trim().equals("-1") instead of in == "-1"

    also print and see what it is printing?

    Please note that you are doing redundant check in your while just for entry check.

    probably,...
Results 1 to 2 of 2