[SATLUG] wrong input

Chris fakie_flip2000 at yahoo.com
Mon Jan 30 17:07:23 CST 2006

A java program asks the user for a numerator and a denominator. Both are of the data type int. Then the program attempts to divide the numbers and print the result. What will happen if the user enters in 0 as the denominator or enters "hello" instead of an integer. How is this problem solved in java?

Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.

More information about the SATLUG mailing list