The Greek letter p, for example, is \u03C0. public class MainClass { public static void main(String[] arg) { String s = "\u03C0"; System.out.println(s); }}