What is wrong with this?
import java.io.*; class TUI{ public static void main(String[] args) { System.out.println(\"Enter the two numbers:\");
readInt is used with datainputstream class. nextInt with scanner class and you need to create a scanner object inorder to get input values. i.e
java.util.Scanner obj=new java.util.Scanner(System.in); int x=obj.nextInt();
Objective of both is the same to read integer values.