Hi,
I want to read an integer value from console, but my input returns the ASCII value of integer, Please Help me.
import java.io.*;
class Test{
public static void main(String args[])throws IOException{
BufferedInputStream br=new BufferedInputStream(System.in);
System.out.println("Enter an Integer");
int i=br.read();
//int j=(int)i;
System.out.print(i);
}
}
Thanks