started programming .. another one .. :(emo):
Printable View
started programming .. another one .. :(emo):
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?
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
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 ..
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)
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)
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.