private static void paixu() {
Integer[] ints = new Integer[] { 89, -23, 64, 91, 119, 52, 73 };Arrays.sort(ints, new score());
for (int i = 0,j=1; i < ints.length&&j<=3; i++) {
if (ints[i]<0||ints[i]>100) {
continue;
}System.out.println(ints[i]);j++;
}
}
Integer[] ints = new Integer[] { 89, -23, 64, 91, 119, 52, 73 };Arrays.sort(ints, new score());
for (int i = 0,j=1; i < ints.length&&j<=3; i++) {
if (ints[i]<0||ints[i]>100) {
continue;
}System.out.println(ints[i]);j++;
}
}
System.out.println("a等于b:" + (a == b));
System.out.println("a大于b:" + (a > b));
System.out.println("a小于等于b:" + (a <= b));
System.out.println("str1等于str2:" + (str1.equals(str2) ));
System.out.println("a大于b:" + (a > b));
System.out.println("a小于等于b:" + (a <= b));
System.out.println("str1等于str2:" + (str1.equals(str2) ));
2015-04-01