Search:

Type: Posts; User: Norm

Search: Search took 0.15 seconds.

  1. Replies
    8
    Views
    1,527

    Re: learning the try and catch

    Doing something "again" is what loops are for. If your assignment requires the code to do things "again" then you need to use a loop.

    See the tutorial: The while and do-while Statements (The...
  2. Replies
    8
    Views
    1,527

    Re: learning the try and catch

    You need to answer this question first:
    What do you want the program to do when there is an exception?
    then decide how to do it.
  3. Replies
    8
    Views
    1,527

    Re: learning the try and catch

    What do you want the program to do when there is an exception?
    If you want it to go back and ask the user to input a valid value, you need to use a loop that exits when a valid value is entered and...
Results 1 to 3 of 3