Hi
I keep having problem on trying to call the method 'in3050'.Please someone guide me on this????
Thanks
public class NumberCheck {
private static void main(String[] args) {
int num1 = 31;
int num2 = 40;
boolean check = in3050(num1,num2);
}
public boolean in3050(int a, int b) {
if (a >= 30 && a <= 40 && b >= 30 && b <= 40)
{
System.out.println("LOL");
return true;
}
else if (a >= 40 && a <= 50 && b >= 40 && b <= 50)
{
return true;
}
else
{
return false;
}
}
}