import java.util.Scanner;
class isEpuals {
public static void main(String[] args)
{
System.out.println("请输入第一个数:");
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println("请输入第二个数:");
int b = sc.nextInt();
boolean c = isEquals(a, b);
System.out.println(c);
}
public static boolean isEquals(int a, int b) {
return a == b;
}
}
|
|