Exception handling for int variables

  • Thread starter spaghetti3451
  • Start date
  • Tags Tags
    Variables
1 reply · 1K views · last reply
spaghetti3451
Messages
1,311
Reaction score
31

Homework Statement



Handle all possible exceptions for a program that takes two int number from the user and print sum.

Homework Equations



The Attempt at a Solution



import java.util.Scanner;

public class Task1
{
}