Search:

Type: Posts; User: worldchamp

Search: Search took 0.11 seconds.

  1. Re: Exception error display with one input and not the other

    thank you for replying.
    but what if I simply change "reply.findInLine(.).charAt(0)" to "reply.findInLine("y").charAt(0)" in my code (I want to do it the way I have done i.e., while loop)?
    Shouldn't...
  2. Re: Exception error display with one input and not the other

    If I press 'n' the output is as desired:

    Welcome to the dice game! Want to play?: Y/N
    n
    Exiting game!

    Process completed.

    However, if I enter 'y', the exception shows up:
  3. Exception error display with one input and not the other

    The following code is supposed to generate random numbers and give some output as long as the user wants to continue. But the problem is it gives an exception if I press 'y'. No problem occurs if I...
Results 1 to 3 of 3