Preview

java answers

Powerful Essays
Open Document
Open Document
15737 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
java answers
Building Java Programs 2nd edition
Exercise Solutions
Chapter 1
Chapter 2
Chapter 3a
Chapter 3G Supplement
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 15
Chapter 16
Chapter 17
Chapter 1
Exercise 1.1: Stewie public class Stewie { public static void main(String[] args) { System.out.println("//////////////////////"); System.out.println("|| Victory is mine! ||"); System.out.println("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"); }
}

Exercise 1.2: Spikey public class Spikey { public static void main(String[] args) { System.out.println(" \\/"); System.out.println(" \\\\//"); System.out.println("\\\\\\///"); System.out.println("///\\\\\\"); System.out.println(" //\\\\"); System.out.println(" /\\"); }
}

Exercise 1.3: WellFormed public class WellFormed { public static void main(String[] args) { System.out.println("A well-formed Java program has"); System.out.println("a main method with { and }"); System.out.println("braces."); System.out.println(); System.out.println("A System.out.println statement"); System.out.println("has ( and ) and usually a"); System.out.println("String that starts and ends"); System.out.println("with a \" character."); System.out.println("(But we type \\\" instead!)"); }
}

Exercise 1.4: Difference public class Difference { public static void main(String[] args) { System.out.println("What is the difference between"); System.out.println("a ' and a \"? Or between a \" and a \\\"?"); System.out.println(); System.out.println("One is what we see when we're typing our program."); System.out.println("The other is what appears on the \"console.\""); }
}

Exercise 1.5: MuchBetter public class MuchBetter { public static void main(String[] args) { System.out.println("A

You May Also Find These Documents Helpful

Related Topics