摘要: 1)冒泡排序 public static int[] bubbleSort(int[]a) { int temp; for(int i=0;i<a.length-1;i++) { for(int j=0;j<a.length-1-i;j++) { if(a[j]>a[j+1]) { temp=a[j 阅读全文
posted @ 2019-10-01 17:41 弘666 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1. 粉红色的是受检查的异常(checked exceptions),有可以说是一般异常,其必须被 try{}catch语句块所捕获,或者在方法签名里通过throws子句声明.受检查的异常必须在编译时被捕捉处理,命名为 Checked Exception 是因为Java编译器要进行检查,Java虚拟 阅读全文
posted @ 2019-10-01 13:44 弘666 阅读(130) 评论(0) 推荐(0) 编辑