Here's the code:
public static void main(String args[]) throws IOException {
int i = System.in.read();
System.out.println(i);
}
When I input 13 for example it prints out 49..? why is that? And how do I fix that?
Here's the code:
public static void main(String args[]) throws IOException {
int i = System.in.read();
System.out.println(i);
}
When I input 13 for example it prints out 49..? why is that? And how do I fix that?