Java
文章平均质量分 76
highnewrain
a simple coder
展开
-
Hibernate4.3.5之"hibernate.dialect" not set问题
"hibernate.dialect" not set问题原创 2014-07-22 15:30:26 · 905 阅读 · 0 评论 -
策略模式
package lesson10; public class Demo4 { public static void main(String[] args) { Dog[] dogs=new Dog[]{new Dog("d1",2),new Dog("d2",4),new Dog("d3",3)}; //MyArrays.sort(dogs); MyArrays.sort(dog原创 2014-07-03 23:41:22 · 385 阅读 · 0 评论 -
迭代器模式
package lesson2; public class Demo6 { public static void main(String[] args) { MyArrayList list=new MyArrayList(); for(int i=0;i<10;++i) { list.add(new Cat(i)); } MyIterator iter=list.it原创 2014-07-09 14:54:09 · 402 阅读 · 0 评论