摘要: class Demo extends Thread { Demo(String name) { super(name); } public void run() { for(int i=0;i<50;i++) { System.out.println(Demo.currentThrea... 阅读全文
posted @ 2018-07-21 22:39 简简单单zjl 阅读(91) 评论(0) 推荐(0)
摘要: public class Bubble_Sort { public static void main(String[] args) { int[] arr={4,3,2,5,7,9,8,1,6}; System.out.print("排序前:"); for(int i=0;iarr[j+1]) {... 阅读全文
posted @ 2018-07-21 11:02 简简单单zjl 阅读(88) 评论(0) 推荐(0)
摘要: class Demo { public int div(int a,int b) throws ArithmeticException,ArrayIndexOutOfBoundsException { int[] arr=new int[a]; System.out.println(arr[4]); return a/b; ... 阅读全文
posted @ 2018-07-21 10:12 简简单单zjl 阅读(130) 评论(0) 推荐(0)