Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


Java Programming Code Examples

Java > Core Java Code Examples

Detect ASCII values

1 2 3 4 5 6 7 8 9 10 11 12 13
Detect ASCII values BufferedReader inStream=new BufferedReader(new InputStreamReader(System.in)); int a; for(int i=1;i<=26;i++) { System.out.println("please enter a character: "); a=(int)System.in.read(); System.out.println("The integer code for " +(char)a+ " is " +(int)a); inStream.readLine(); }