排序
摘要:public class Demo{ public static void main(String[] args) { int [] arr = {5,6,1,4,3,2};// int [] arr = {5,1,4,2,3}; int count = 0; for (int i = arr.length -1 ; i > 0 ; i--) { int max = arr[0]; int position = 0; //找出最大值和所在位置 ...
阅读全文
posted @ 2013-10-31 14:42
浙公网安备 33010602011771号