Results 1 to 6 of 6
- 05-30-2011, 10:00 AM #1
Member
- Join Date
- May 2011
- Posts
- 39
- Rep Power
- 0
- 05-30-2011, 10:24 AM #2
- 05-30-2011, 10:29 AM #3
Calling System.out.println() with no argument will output a blank line. Is that what you mean?
Get in the habit of using standard Java naming conventions!
- 05-30-2011, 10:33 AM #4
- 05-30-2011, 11:12 AM #5
Member
- Join Date
- May 2011
- Posts
- 39
- Rep Power
- 0
I used Calling System.out.println() and it left a space between the 2 outputs
thank you
- 05-30-2011, 11:27 AM #6
Good to know that.
But if you ever feel that the blank println statements don't make much sense, you can go for the escape sequence as well. Like,
Hope that helps,Java Code:System.out.println("A"); System.out.println(); System.out.println("B"); // Is as same as below, System.out.println("A\n"); System.out.println("B");
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
Similar Threads
-
Println VS system.out.println
By ccie007 in forum New To JavaReplies: 2Last Post: 05-20-2010, 08:52 AM -
difference between system.out.println() & out.println()
By wickedrahul9 in forum Advanced JavaReplies: 5Last Post: 10-18-2008, 11:06 PM -
System.out.println
By Sniper-X in forum Advanced JavaReplies: 10Last Post: 05-05-2008, 03:41 PM -
System.out.println
By sunjavaboy in forum Advanced JavaReplies: 3Last Post: 03-22-2008, 01:30 AM -
Help me with system.out.println
By baltimore in forum New To JavaReplies: 1Last Post: 07-31-2007, 08:30 PM


LinkBack URL
About LinkBacks
Reply With Quote

.gif)

Bookmarks