1   /**
2    * 183.592 Programmierpraxis TU Wien WS2014/15 H.Moritsch
3    * Umwandlung von und in ASCII Code
4    * s. z. B. http://www.electronicdeveloper.de/Images/ASCII-Tabelle1.PNG
5   */
6   public class CharInt {
7       public static void main(String[] args) {
8   
9           for (int code = 32; code < 127; code++ )  {
10              char zeichen = (char)code;              // Konvertierung int -> char
11              int  n = (int) zeichen;                 // Konvertierung char -> int
12              System.out.println( code + ": " + zeichen + "    (" +  n  + ")" );
13          }
14      }
15  
16  }
17