// // print2 // // Author: Kenneth Chan // email : kjc@liverpool.ac.uk // Date : October 2010 // Description: program that demonstrates printing AND concatenation // class print2 { // // MAIN // public static void main( String args[] ) { System.out.print("this is print" + " - notice that everything " + "is on the same line") ; System.out.println() ; System.out.println("this is println\n" + " - now notice that everything\n" + "appears on separate lines\n") ; } }