// // File: /home/cs255001/demo/atoi/JavaOutput_1.java // // Demo write method in System.out // import java.util.Scanner; public class JavaOutput_1 { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int c = 0; while ( true ) { System.out.print("\n\nEnter an ASCII character code (48 = '0'): "); c = in.nextInt(); // Read ASCII code from key board System.out.print("Character displayed by this ASCII code = "); System.out.write(c); } } }