import java.io.IOException;
public class KeyboardInput {
public static void main(String[] args) throws IOException{
int c;
System.out.print("Enter a character: ");
c=System.in.read();
System.out.println("You entered "+c);
}
}
Why does this program return 49 on entering 1?
public class KeyboardInput {
public static void main(String[] args) throws IOException{
int c;
System.out.print("Enter a character: ");
c=System.in.read();
System.out.println("You entered "+c);
}
}
Why does this program return 49 on entering 1?