摘要: //组合排列public class test3 { public static void main(String [] args) { int a[]={3,4,6,9,8}; int b[]={0,0,0}; combine(a, 5, 3, b, 3); } public sta... 阅读全文
posted @ 2014-04-25 16:27 蓦然回首的包子 阅读(152) 评论(0) 推荐(0)
摘要: import java.util.Scanner;public class test7 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in=new Scanner(S... 阅读全文
posted @ 2014-04-25 16:26 蓦然回首的包子 阅读(522) 评论(0) 推荐(0)
摘要: import java.util.Scanner;public class test6 { /** * @param args * 输入的单词的个数 */ public static void main(String[] args) { // TODO Auto-generated meth... 阅读全文
posted @ 2014-04-25 16:25 蓦然回首的包子 阅读(172) 评论(0) 推荐(0)
摘要: public class Factory { /** * @param args简单 工厂模式 */ public static Operation creat(String o) { Operation operation=null; if (o=="+") { operation=n... 阅读全文
posted @ 2014-04-25 16:21 蓦然回首的包子 阅读(129) 评论(0) 推荐(0)
摘要: public class Builder { /** * @param args 建造者模式 */ private PersonBuilder pBuilder;public Builder (PersonBuilder pBuilder) { this.pBuilder=pBuilder;}p... 阅读全文
posted @ 2014-04-25 16:20 蓦然回首的包子 阅读(141) 评论(0) 推荐(0)