上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页
摘要: 1 package com.tn.pattern; 2 3 public class Client { 4 public static void main(String[] args) { 5 Object[] objs={"飞","雪","连","天","射","白","鹿","笑","书","神"}; 6 Aggregate aggreg... 阅读全文
posted @ 2017-05-12 16:31 xiongjiawei 阅读(226) 评论(0) 推荐(0)
摘要: 1 package com.tn.pattern; 2 3 import java.util.Vector; 4 5 public class Client { 6 public static void main(String[] args) { 7 Component china=new Composite("中国"); 8 ... 阅读全文
posted @ 2017-05-12 13:43 xiongjiawei 阅读(199) 评论(0) 推荐(0)
摘要: 1 public class Client { 2 public static void main(String[] args) { 3 Component component=new ConcreteComponent(); 4 component=new ConcreteDecoratorA(component); 5 com... 阅读全文
posted @ 2017-05-11 14:11 xiongjiawei 阅读(145) 评论(0) 推荐(0)
摘要: 1 package com.tn.策略模式; 2 3 public class Client { 4 private Strategy strategy; 5 public void setStrategy(Strategy strategy){ 6 this.strategy=strategy; 7 } 8 public voi... 阅读全文
posted @ 2017-05-10 20:45 xiongjiawei 阅读(204) 评论(0) 推荐(0)
摘要: 1 public class Test { 2 public static void main(String[] args){ 3 Creator ca=new ConcreteCreatorA(); 4 ca.create().doSth(); 5 Creator cb=new ConcreteCreatorB(); 6 ... 阅读全文
posted @ 2017-05-10 16:35 xiongjiawei 阅读(163) 评论(0) 推荐(0)
摘要: 1 public class Test { 2 public static void main(String[] args){ 3 try{ 4 Factory.factory("A").doSth(); 5 Factory.factory("B").doSth(); 6 Factory.... 阅读全文
posted @ 2017-05-10 13:35 xiongjiawei 阅读(207) 评论(0) 推荐(0)
摘要: LinkedList: Node: 客户端测试类Test: 阅读全文
posted @ 2017-05-07 15:48 xiongjiawei 阅读(583) 评论(0) 推荐(0)
摘要: ArrayList: 客户端测试类Test: 阅读全文
posted @ 2017-05-07 14:28 xiongjiawei 阅读(632) 评论(0) 推荐(0)
摘要: 可以随时添加过滤器,并在主方法中添加删除: Main MsgProcessor FilterChain Filter HTMLFilter SensitiveFilter SmileFaceFilter 顺序处理request,逆序处理response: Main FilterChain Filte 阅读全文
posted @ 2017-05-06 18:27 xiongjiawei 阅读(162) 评论(0) 推荐(0)
摘要: 其他类型转化为boolean类型规则: number:非0为true,0和NaN为false; String:非空为true,空为false; Object:任何对象都为true 任何变量赋值为null后类型就为null,可以通过给变量赋null来清空变量。 null和undefined区别:nul 阅读全文
posted @ 2017-05-04 19:13 xiongjiawei 阅读(182) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页