Check your variable naming. You messed up there, to much "max" and "min".
You can reference the class variable with "this.".
also you messed up with return values and references: You are passing the "max" by value and then you return that value.
That is too much. Pass back OR assign values:
private void isMax(int num)
{
if (num > this.max){
this.max = num;
}
}
public int min(int min,int num)
{
if (num < min){
return num;
}
return min;
}
Please choose one version and rewrite the other.
EDIT:
Passing Information to a Method or a Constructor[
^]