Re: Help -- New to Java
- From: John <jtlinux1@xxxxxxxx>
- Date: 27 Jul 2007 01:25:11 GMT
On 2007-07-26, Lew <lew@xxxxxxxxxxxxxxxx> wrote:
Bjorn Abelli wrote:
public static int double(int[] p) {
You'll need a method name that isn't a keyword.
// Here you put in the logic to calculate the average
}
The main difference from C in this aspect is that you need to use the
keyword "static". Otherwise it becomes an "instance member" instead of a
"class member".
No, you don't. This could just as well be an instance method.
I'm going to give his assignment a shot. All I need is a formula for std dev and median and then that other thing.. I guess google is gonna be my friend.
--
John T.
My other computer is a swodniw machine
2007
.
- References:
- Help -- New to Java
- From: Al
- Re: Help -- New to Java
- From: Bjorn Abelli
- Re: Help -- New to Java
- From: Lew
- Help -- New to Java
- Prev by Date: Re: Question for Roedy
- Next by Date: JMF and client side Applet problem
- Previous by thread: Re: Help -- New to Java
- Next by thread: Re: Help -- New to Java
- Index(es):
Relevant Pages
|