摘要:
public class JavaOne{ public static void main(String[] args){ Outer.Inner.fun(); Outer.Inner in=new Outer.Inner(); in.fun(); Outer ou=new Outer(); ou.f(); ... 阅读全文
摘要:
商品案列展示 购物车| 帮助中心| 我的账户| 新用户注册... 阅读全文
摘要:
class Single { private static Single s=null; private Single(){} public static Single getInstance() { if(s==null) { synchronized(Single.class) {... 阅读全文
摘要:
public class TicketDemo { public static void main(String[] args) { Ticket t=new Ticket(); Thread t1=new Thread(t); t1.setName("One--"); t1.start(); T... 阅读全文
摘要:
class Demo extends Thread { Demo(String name) { super(name); } public void run() { for(int i=0;i<50;i++) { System.out.println(Demo.currentThrea... 阅读全文
摘要:
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]) {... 阅读全文
摘要:
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++) { ... 阅读全文