Contact PSVM   (Q & A)  |  Notes Below   Audio  |  [toc]   [prev] Slide 10 of 18 [next]
SIJLesson11 Slide10
1, 2, 3, 4, 5, 6, 7, 8, 9, [10 (top)], 11, 12, 13, 14, 15, 16, 17, 18, [Lab]

Notes for Slide 10
One way to get the value out of an int variable is to use the variablename
in a System.out.print-statement. Putting the name of the int
variable guess inside the parentheses characters: ( :and
: ) :is often referred to verbally as,
"passing the value in the guess variable to System.out.print",
or simply,
"passing guess to System.out."
The extra el-en ("ln") in System.out.println stands for "line".
So the System.out.print() and System.out.println() methods differ
slightly, but significantly.
A series of System.out.print-statements would output numbers across
one line, and
a series of System.out.println-statements would output numbers across
many lines.


1, 2, 3, 4, 5, 6, 7, 8, 9, [10 (top)], 11, 12, 13, 14, 15, 16, 17, 18, [Lab]