2013年10月31日

排序

摘要: 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 LoveEyes 阅读(191) 评论(0) 推荐(0) 编辑

导航