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;
}
}

