Lecture 22
13
Characters (continued)
•Printable characters are 32-126 (decimal) – other bytes are
–visible in emacs (look at a class file)
–used for emacs commands, like ^S
•To represent them in Java use escape character: \
•‘\ddd’  // ddd is base 8 number < 256
•System.out.println(‘\007’); //ring bell
•‘\n’, ‘\b’, ‘\t’, ‘\”’, ‘\\’
•See Escape.java in joi/examples/
•
•