给分import java.util.ArrayList;
import java.util.List;
public class T {
public boolean compare(int a, int b) {
return a > b;
}
public boolean compare(double a, double b) {
return a > b;
}
public int getMax(int[] nums) {
int max = Integer.MIN_VALUE;
for (int num : nums) {
if (num > max)
max = num;
}
return max;
}
public double getMax(double[] nums) {
double max = Float.MIN_VALUE;
for (double num : nums) {
if (num > max)
max = num;
}
return max;
}
public boolean isSushu(int num) {
if (num
return false;
for (int i = 2; i
if (num % i == 0) {
return false;
}
}
return true;
}
public List searchSushu(int min, int max) {
List list = new ArrayList();
for (int i = min; i <= max; i++) {
if (issushu(i))
list.add(i);
}
return list;
}
public static void main(String[] args) {
T t = new T();
System.out.println(t.compare(1, 2));
}
}