摘要:
class Single { private static Single s=null; private Single(){} public static Single getInstance() { if(s==null) { synchronized(Single.class) {... 阅读全文
摘要:
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; ... 阅读全文
摘要:
package com.day18.Thread; public class ThreadFive { public static void main(String[] args) { new Thread() { public void run() { System.out.println(getName()+... 阅读全文
摘要:
package com.day18.Thread; public class ThreadFour { public static void main(String[] args) { new Thread("Lakers") { public void run() { System.out.println(th... 阅读全文
摘要:
package com.day18.线程; public class ThreadThree { public static void main(String[] args) { new Thread() { public void run() { for(int i=0;i<1000;i++) { ... 阅读全文