石化盈科笔试题
}
}
class Parent {
public void show() {
(
石化盈科笔试题
}
}
class Parent {
public void show() {
("class Parent show ");
}
}
class Sub extends Parent {
public void show() {
("class Sub show ");
}
}
public class tryCatch {
/**
* ***@param args
*/
public static void main(String[] args) {
try {
("begin ");
("end ");
return;
} catch (Exception e) {
("excepton ");
} finally {
("finally");
}
}
}
public class MySort {
public static void main(String[] args) {
MySort sort = new MySort();
int[] arr = new int[] { 3, 22, 11, 5, 400, 99, 20, 22, 5 };
(arr);
for (int i : arr) {
(i + ",");
}
}
public void sort(int[] targetArr) {// 小到大的排序
int temp = 0;
for (int i = 0; i < ; i++) {
for (int j = i; j < ; j++) {
if (targetArr[i] < targetArr[j]) {
// 方法一:
temp = targetArr[i];
targetArr[i] = targetArr[j];
targetArr[j] = temp;
/*
* /方法
石化盈科笔试题 来自淘豆网m.daumloan.com转载请标明出处.