Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java Programming Tutorial - 82 - Exception Handling

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
69,691
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 25, 2009

Exceptions and errors are the exact same thing.

  • likes, 3 dislikes

Link to this comment:

Share to:

Top Comments

  • Why is your variable named sum when you're diving??? ;-) .. just saying.. :-D

  • For you guys that are getting infinite loops when entering an invalid character, such as a letter, you will need to call next() on your scanner inside the catch clause to clear the invalid data from the scanner, else, you will be looping over invalid data.

see all

All Comments (171)

Sign In or Sign Up now to post a comment!
  • So we had ifception, now it's catch 22

  • @hashtit Cuz, in buckys tutorials, you go ahead and make sure you haue speleed everryting rong

  • to Spielberg2Cents, why have you spelt, dividing as "diving", just saying...

  • only 66,000 people really liked java and tried to learn it... im one of em

  • I accidentally typed in a letter...the Loop is never stopping. Explain please...

  • @tatersalad58 you dont, its gonna just read another num

    just at the start of the loop we need to clear wrong input data using

    input.reset();

  • Yaayyy atlast..a new and meaningful main class name

  • helpful

  • @molle7397 It wont let me post the code, can I PM you my email?

  • @molle7397 I think I might of fixed it, I'll send you another reply if it doesn't work out.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more