In a Java program, I have:
System.out.println("\\nPress 1 for aaa"); System.out.println("\\nPress 2 for bbb"); System.out.println("\\