Quantcast
Channel: Simplilearn Community
Viewing all articles
Browse latest Browse all 50081

import java.io.IOException;public class Keyboar...

$
0
0
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?

Viewing all articles
Browse latest Browse all 50081

Trending Articles