上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 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(); ... 阅读全文
posted @ 2018-08-17 11:39 简简单单zjl 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 商品案列展示 购物车| 帮助中心| 我的账户| 新用户注册... 阅读全文
posted @ 2018-08-14 18:41 简简单单zjl 阅读(265) 评论(0) 推荐(0) 编辑
摘要: class Single { private static Single s=null; private Single(){} public static Single getInstance() { if(s==null) { synchronized(Single.class) {... 阅读全文
posted @ 2018-07-22 17:18 简简单单zjl 阅读(104) 评论(0) 推荐(0) 编辑
摘要: public class TicketDemo { public static void main(String[] args) { Ticket t=new Ticket(); Thread t1=new Thread(t); t1.setName("One--"); t1.start(); T... 阅读全文
posted @ 2018-07-22 13:25 简简单单zjl 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(86) 评论(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 阅读(83) 评论(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 阅读(126) 评论(0) 推荐(0) 编辑
摘要: package com.day18.Thread; public class ThreadFive { public static void main(String[] args) { new Thread() { public void run() { System.out.println(getName()+... 阅读全文
posted @ 2018-07-06 23:19 简简单单zjl 阅读(2214) 评论(0) 推荐(0) 编辑
摘要: package com.day18.Thread; public class ThreadFour { public static void main(String[] args) { new Thread("Lakers") { public void run() { System.out.println(th... 阅读全文
posted @ 2018-07-06 22:59 简简单单zjl 阅读(3458) 评论(0) 推荐(0) 编辑
摘要: package com.day18.线程; public class ThreadThree { public static void main(String[] args) { new Thread() { public void run() { for(int i=0;i<1000;i++) { ... 阅读全文
posted @ 2018-07-05 22:05 简简单单zjl 阅读(2867) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页