String one, two, three;one = two = three = "";
这应该适用于不可变的对象。对于可变对象没有任何意义,例如:
Person firstPerson, secondPerson, thirdPerson;firstPerson = secondPerson = thirdPerson = new Person();
所有变量将指向同一实例。在这种情况下,你可能需要的是:
Person firstPerson = new Person();Person secondPerson = new Person();Person thirdPerson = new Person();
或者最好还是使用数组或Collection。



