Results 1 to 9 of 9
- 06-10-2011, 06:51 AM #1
Member
- Join Date
- Jun 2011
- Posts
- 4
- Rep Power
- 0
- 06-10-2011, 06:55 AM #2
Wow
You thought to ask this question on a forum but didn't think to type up a simple bit of code to test the behaviour of each to see if they are the same or different.
Just use a bit of logical reasioning. Why do you think they would write 2 methods that do exactly the same thing?
- 06-10-2011, 07:47 AM #3
Member
- Join Date
- Jun 2011
- Posts
- 4
- Rep Power
- 0
you mean how each code is different ?
right ?
i wont have access to my pc for 3 or four days ... thats why . so i thought why waste my time ...
thanks .. anyway ..
i dont know .. to confuse people like you and me i guess
- 06-10-2011, 04:05 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
- 06-12-2011, 08:14 AM #5
Member
- Join Date
- Jun 2011
- Posts
- 4
- Rep Power
- 0
what would be a program that you would try to make ...
after HelloWorld ?
in java ...
i have to learn to write hello world in , let me see ..in five or more languages .. i am really getting sick of this shit ..
not a proper tutorial or book to be found ..
- 06-12-2011, 08:43 AM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 06-12-2011, 10:29 AM #7
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
If you want a free resource, use the tutorials Jos mentioned. If you feel like getting a book, try getting "head first java", or read my blog post for some other good books: Helping beginners get started. « Sunde's Blog
Also, to me, the only real usefulness of hello world programs is the get a program compiled(which can be a challenge when new)
- 06-19-2011, 06:35 PM #8
Member
- Join Date
- Jun 2011
- Posts
- 1
- Rep Power
- 0
The only difference b/w these two method is
println :- it will print the output in console with a newline character at the end
wherease print :- it will print the output in console without any newline character(\n)
- 06-21-2011, 02:21 PM #9
Senior Member
- Join Date
- Nov 2010
- Posts
- 150
- Rep Power
- 3
yes, amitkumar pretty much answered it,so in even more laymen terms, it goes like this:
print(argument): will print your argument and leave the cursor on the same line (if you could see your cursor).
println(argument): will print your argument and move to the cursor to the next line. the ln is short for line.
Don't despair. You'll get better at it and this board is a great resource for help, but please try to show some consideration. When your statement implies that your time is valuable to you, hence why you don't want to waste it doing something that you are asking others to do, this is a bit condescending.
Similar Threads
-
Loop System print or println statements
By Singing Boyo in forum New To JavaReplies: 6Last Post: 03-22-2009, 03: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


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks