| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 4 of 9 [next] |
|
|
| 1, 2, 3, [4 (top)], 5, 6, 7, 8, 9, [Lab] |
|
Notes for Slide 04 There are two output statements that start with the words System.out The first output statement listed, System.out.print(message); will output a message. The second output statement listed, System.out.println(message); will output a message followed by a new line. One way to understand the difference is to use two of these statements in your program. Using the System.out.print-statement twice will output just one line. Using the System.out.println-statement twice will output two lines. For example System.out.print("Hello"); System.out.print("Hello"); will output HelloHello Another example System.out.println("Hello"); System.out.println("Hello"); will output Hello Hello You will soon see that the System.out-statements are used to help you "debug" your program. "Debug" means to remove any bugs (errors) from your program. 1, 2, 3, [4 (top)], 5, 6, 7, 8, 9, [Lab] |