摘要: 1 class Product 2 { 3 @Override 4 public String toString() { 5 return "Product"; 6 } 7 } 8 9 interface Builder 10 { 11 void BuildPart(); 12 } 13 14 class ConcreteBuilder implements Builder 15 { 16 17 @Override 18 public void BuildPart() { 19 /... 阅读全文
posted @ 2013-12-20 22:05 天天AC 阅读(226) 评论(0) 推荐(0)
摘要: 1 public class String_Problem {2 public static void main(String[] args) {3 String s = null;4 s = s.toString() + 1;View Code 1 //s = s+1;2 此语句可以解释为3 //StringBuilder sb = new StringBuilder();4 //sb.append(s);5 //sb.append(1);6 //s = sb.toString();Vie... 阅读全文
posted @ 2013-12-20 21:48 天天AC 阅读(318) 评论(0) 推荐(0)