I did this for 32 escape characters + space:
try (PrintWriter out = new PrintWriter("C:/ctl.txt")) { for (int i = 0; i <= 32; ++i) { String s = "" + (char)i; System.out.println("(char)" + i + " is '" + s + "'."); out.println("(char)" + i + " is '" + s + "'."); } } catch (FileNotFoundException ex) { Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex); }
In addition to return, tab, line feed, and carriage return, the IDE console showed a space. A control was marked in the file. Thus, it is a matter of displaying a non-functional control character in space.
source share