email me at borlaj@portlandschools.org
notes previous (09/07/06) submit the dump links  
 

Output

 

In applications to do output we say

System.out.println("What ever we want to say");

This prints our text out on a new line (thats what the ln is for).

To print without a new line after words, what do you think we would do?

System.out.print("no new line");
System.out.print("no new line");

Yep, we just get rid of the ln.

 

To save space we could just use + between parts of our sentence:

System.out.println("The first part of my sentence" + "The second part");
This works for variables too:
System.out.println("The total is " + theTotal);