can't read int value
import java.io.*;
class binary
{
publicstaticvoid main(String args[])
{
BufferedReader br;
int ch=0;
br =new BufferedReader(new InputStreamReader(System.in));
System.out.println("enter value");
try
{
ch = (int)br.read();
}
catch(IOException e)
{
System.out.println("Exception Caught");
}
System.out.println("the value entered is :" + ch);
}
}
the read method used above reads an character and returns it integer value and if we want to read an integer value how to do so, i tried it in the above code but it doesn't work
is there any specific function for reading int values or we need to use the ByteStream classes instead of the Character ones
plz reply

