boolean bool = 5>2; System.out.printf("%B", bool); // TRUE System.out.printf("%b", bool); // true Calendar c = Calendar.getInstance(); Date d = new Date(5000l); System.out.printf("Es ist nicht %2$tY, sondern der %1$te.%1$tm.%1$tY", c, d); // Es ist nicht 1970, sondern der 30.12.2009 String w = "Welt!", h = "Hallo "; System.out.printf("%2$s %1$S", w, h); // Hallo WELT! System.out.printf("%03d", 7); // 007 System.out.printf("%5c", 38); // & System.out.printf("%-5c", 38); // &