Results 1 to 3 of 3
Thread: Differnc
- 01-16-2009, 05:43 AM #1
Member
- Join Date
- Jan 2009
- Posts
- 16
- Rep Power
- 0
Differnc
Hi,
I know this is a basic question, but I'll ask it anyway :). While reading, I noticed that the author sometimes used System.out.print("Blah") and at other times System.out.println("Blah"). What's the difference?
Thanks!
Oh, and sorry for the weird title! I accidently pressed enter! Whoopse...Last edited by sciguy77; 01-16-2009 at 05:46 AM.
- 01-16-2009, 05:48 AM #2
...println is the same as ...print("\n").
println adds a new line.
print don't add any new line.
create a program and try it out.
- 01-16-2009, 05:50 AM #3
Member
- Join Date
- Jan 2009
- Posts
- 16
- Rep Power
- 0


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks