虽然表达 “another string to your bow” 的字面意思是 “还有一根备用的弓弦”,但实际上它用 “string(弦)” 来比喻一个人的 “技能”,意思是 “如果第一个技能不管用,还备有另一个技能可以使用,有两手准备”。So, think of another string as another skill – so how many strings do you have, ...
public void stringTest(){ String a = "a"+"b"+1; String b = "ab1"; System.out.println(a == b); } 大家猜一猜结果如何?如果你的结论是true。好吧,再来一段代码: public void stringTest(){ String a = new String("ab1"); String b = "ab1 ...