Changed the order of name and age in the toString method

This commit is contained in:
Roel Spilker
2009-07-18 02:35:05 +02:00
parent bc35f73ae8
commit ffec3c35f3
2 changed files with 2 additions and 2 deletions
@@ -3,7 +3,7 @@ public class GetterSetterExample {
private String name;
@Override public String toString() {
return String.format("%s (age: %d)", age, name);
return String.format("%s (age: %d)", name, age);
}
public int getAge() {