- class DataInput
- {
- public static void main(String args[])
- {
- try
- {
- DataInputStream in + new DataInputStream(System.in)
- System.out.println("Enter 1st number:")
- int a=Integer parseInt(in.readLine());
- System.out.println("Enter 2nd number:");
- int b=Integer.parseInt(in.readLine());
- }
- }
- }