public class W06N03 { public static void main(String[] args) { char c = IO.readChar("Your char: "); long lc = (long) c; double dc = (double) c; System.out.println("c is " + c + ", lc is " + lc + ", dc is " + dc); System.out.println(Character.isLowerCase(c)); // unicode characters System.out.println((char) 248); System.out.println((char) 178); // For the curious: backslash u below means unicode escape // and can be used // to refer to any unicode character - xxxx is a number in // hexidecimal notation. See // http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html // and // www.unicode.org System.out.println('\u0061'); // 0061 hexadecimal is 97 decimal // another from: http://www.ssec.wisc.edu/~tomw/java/unicode.html // arabic question mark -- arabic font must available at runtime, // which it is not in jgrasp System.out.println('\u061F'); } }