摘要: public class quickSort{ public static void main(String[] args){ int[] intArray={12,11,45,6,8,43,40,57,3,5,9,10,18,16,1}; System.out.p... 阅读全文
posted @ 2015-05-23 23:38 sunshinewxz 阅读(103) 评论(0) 推荐(0) 编辑
摘要: ——from mepublic class BubbleSort{ public static int[] sortArray(int[] nums){ for(int i=0;inums[j]){ int temp=nums[i]; ... 阅读全文
posted @ 2015-05-23 22:33 sunshinewxz 阅读(147) 评论(0) 推荐(0) 编辑
摘要: public class Triangle{ public static int[] orderby(int[] nums,String str){ if(str.equalsIgnoreCase("desc")){ for(int i=0;inums[j]... 阅读全文
posted @ 2015-05-23 21:48 sunshinewxz 阅读(141) 评论(0) 推荐(0) 编辑