public class Person { String name; public Person(String name) { this.name = name; } public String toString() { return name; } }