public static void main(String[] args) {
boolean b1 = isEquals(20,30);
System.out.println(b1);
boolean b2 = isEquals(30,40);
System.out.println(b2);
}
public static boolean isEquals(int a,int b) {
return a == b;
}
public static boolean isEquals(double a,double b) {
return a == b;
}
|
|