package esimerkit; public class AsciiTesti { public static char[] aakkoset() { char[] aakkoset = new char[26]; for(int i=97; i < 123; i++) aakkoset[i-97] = (char) i; return aakkoset; } /** * @param args */ public static void main(String[] args) { char c = 97; System.out.println(c); System.out.println(aakkoset()); char c2 = '1'; int luku = (int) c2; } }