/**forcomplexobjects**/staticvoidtest2(){Personp=newPerson("John");System.out.println("My current name: \t"+p.getName());StringnewName="Michael";changeName(p,newName);System.out.println("My new name: \t"+p.getName());}privatestaticvoidchangeName(Personp,StringnewName){//p.setName(newName); // line xp=newPerson(newName);// line x + 1 }
Last edit: Duy Dinh 2014-04-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Last edit: Duy Dinh 2014-04-16