Use类
public class User {
private String name;
private double height;
private Date birthday;
public User(String name, double height, Date birthday) {
this.name = name;
this.height = height;
this.birthday = birthday;
}
public User() {
}
public String getName() {
return name;
}
public double getHeight() {
return height;
}
public Date getBirthday() {
return (Date) birthday.clone();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass(