您的位置:首页 > 其它

打造安全的WEB服务器 系统帐户权限设置详解

2008-05-01 08:35 609 查看
public class Bubble {

int temp;
public void bubbleSort(int[] a) {
// 每个都进行冒泡(一个一个来)
for (int i = 0; i < a.length; i++) {
// 和后面的每个都进行比较(过五关看六将)
for (int j = 0; j < a.length - 1; j++) {
if (a[j] > a[j + 1]) {
temp = a[j];
a[j] = a[j + 1];
a[j + 1] = temp;
}
}
}
}

public static void main(String[] args) {
int[] array = { 10, 22, 3, 7 };
Bubble paixu = new Bubble();
for (int i : array) {
System.out.println(i);
}
paixu.bubbleSort(array);
System.out.println("===========");
for (int i : array) {
System.out.println(i);
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: