Results 1 to 7 of 7
- 10-30-2010, 05:09 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 12
- Rep Power
- 0
-
Some methods have parameters and when you call these methods you must pass arguments into the parameters. That's all it means.
For example, one overload of the System.out.println method has a String parameter, and below, I'm passing the method the argument "hello world":
Java Code:System.out.println("hello world");
- 10-30-2010, 05:25 PM #3
Member
- Join Date
- Oct 2010
- Posts
- 12
- Rep Power
- 0
thank you, can i ask where you got the example from? because most places i have seen use the "hello world" example and it would be great to find out where this is from.
-
From a deep recess in my brain. You don't want to go there. Trust me.
That's an interesting question as "hello world" has been a tradition of programming for as long as I remember, predating Java and quite possibly C. It ranks right up there with foo and bar....because most places i have seen use the "hello world" example and it would be great to find out where this is from.
edit: no, it does not pre-date C but in fact may have been first seen or at least popularized in an example in one of the first seminal books on C: http://en.wikipedia.org/wiki/Hello_worldLast edited by Fubarable; 10-30-2010 at 08:59 PM.
- 10-30-2010, 10:22 PM #5
Sincerely, Joshua Green
Please REP if I help :)
- 10-30-2010, 10:48 PM #6
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,543
- Rep Power
- 11
"one of"? Heresy!
The comparatively few pages of K&R's bible remains a model of clarity in a world where the likes of Herbert Schildt have laid waste to whole forests. Anyone new to Java would do well to obtain a copy and read it by way of a change.
Also OP: You now have 2 threads on this. Perhaps you could consider consolidating them into one? Post a link from one to the other.
- 10-31-2010, 11:08 AM #7
Member
- Join Date
- Oct 2010
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
connection = DriverManager.getConnection(DATABASE_URL,'"+userid +"','"+password+"');
By renu in forum New To JavaReplies: 3Last Post: 10-12-2010, 04:21 PM -
pass "." as a string
By billq in forum New To JavaReplies: 5Last Post: 02-07-2010, 05:39 AM -
problem with argument list and precedence "(" and ")"
By helpisontheway in forum Advanced JavaReplies: 6Last Post: 12-24-2009, 07:50 AM -
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan")
By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks