Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
Very beginning questions: parameter and parameter passing
Selecta Zhangy
Greenhorn
Posts: 16
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
1, what is
parameter
?
2, what is "value
passed
as a parameter" ?
can someone explain brifely to me coz im confused? and please use one or more example.
thanks a lot!
Roseanne Zhang
Ranch Hand
Posts: 1953
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What is parameter?
Read any programming language book (for C or C++ or VB or
Java
or ... in any natural language, such as English, Chinese, etc), you can find out your own answer in minutes!!!
Vanessa Astle
Ranch Hand
Posts: 37
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
There'll probably some criticisms about how I'm explaining this but:
A parameter is the information that a method needs in order for it to run.
For example:
public int convertToCelsius(int f) <<(parameter!!)
{
int c = (((f - 32)/9)*5);
return c;
}
Then when you call this method somewhere else, you pass it an arguement (parameter value)...
convertToCelsius(25);
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
catch (Exception parameter)
Methods & Arguments
postgres connectivity failure with jdbc
Default JVM Parameter
operation parameters - uml question
More...