// Demonstrate escape sequences in strings. public class StrDemo { public StrDemo() { // TODO Auto-generated constructor stub } public static void main(String[] args) { // TODO Auto-generated method stub // Use \n to generate a new line. System.out.println("First line \nSecond line"); // Use tabs to align output. System.out.println("A\tB\tC"); System.out.println("D\tE\tF"); } }