/** * Name: John Doe * Course: CSCI 241 - Computer Science I * Section: 001 or 002 * Assignment: 1 * * Project/Class Description * This class demonstrates some escape sequences for special * characters. */ public class TestEscape { public static void main (String [] args) { System.out.println("This is a regular line"); System.out.println("Line with escape n:" + '\n'); System.out.println("Line with quote" + '\"' + "in the middle"); System.out.println("Line with tab" + '\t' + "in the middle"); System.out.println("Line with backslash" + '\\' + "in the middle"); System.out.println("Line with backslash\\in the middle"); System.out.println("Line with forward slash" + '/' + "in the middle"); } }