Another question

Hi, i posted a few minutes ago, reminding of the other problem, I've got another example in wich somthing is wrong.

Can somebody tell me what I do wrong?

import java.util.*;

publicclass test{

publicstaticvoid main(String[] args){

Scanner kb =new Scanner(System.in);

double x = kb.nextDouble();

double y = kb.nextDouble();

double res = max();

System.out.println(res);

}

publicstaticdouble max(double x,double y){

//post: retourneert grootste van x en y

double res = 0;

if (x > y)

res = x;

else

res = y;

return res;

}

}

[1470 byte] By [Kukiwona] at [2007-11-26 19:39:47]
# 1
> double res = max();above statement is wrong
p_epia at 2007-7-9 22:19:04 > top of Java-index,Java Essentials,New To Java...
# 2
I know it's wrong, but what shoul it be instead?Kind Regards.Jordy
Kukiwona at 2007-7-9 22:19:04 > top of Java-index,Java Essentials,New To Java...
# 3
> I know it's wrong, but what shoul it be instead?> Kind Regards.> Jordydouble res = max(x,y);or double res = test.max(x,y);
p_epia at 2007-7-9 22:19:04 > top of Java-index,Java Essentials,New To Java...
# 4
thanks very much!Greetings
Kukiwona at 2007-7-9 22:19:04 > top of Java-index,Java Essentials,New To Java...