Re: Help -- New to Java



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
.



Relevant Pages

  • Re: containstable across columns
    ... You're welcome, John ... would like this to be keyword and column specific. ... "brown" the implicit author and "chemistry" the implicit title), ...
    (microsoft.public.sqlserver.fulltext)
  • Re: C++ friend class equivalent
    ... I want to give an external class access to private methods in ... just as the friend keyword does in C++ ... here class B has access to all of A's private members and methods. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: man pages for c++?
    ... John L Fjellstad wrote: ... man -k keyword ... I second the Josuttis recommendation. ...
    (Ubuntu)
  • Re: Overloading == operator
    ... >After Adding keyword, friend, to the above declaration, the error disappear. ... in member function, operator== just need one parameter, because ...
    (comp.lang.cpp)
  • Re: Instr Question
    ... but when someone only has 1 keyword like only JOHN in ... > SUBSCRIPT OUT OF RANGE ... Prev by Date: ...
    (microsoft.public.scripting.vbscript)