Crystal
public class Crystal{
private int age;
private String occupation;
private List hobbies;
public Crystal(int age, String occupation, List hobbies) {
this.age = age;
this.occupation = occupation;
this.hobbies = hobbies;
}
public static void main(String[] args) {
Crystal crystal = new Crystal(27, "後端工程師",
new ArrayList<>(
List.of("做網站", "散步",
"用傻瓜相機拍照", "逛沒看過的東西", "聽音樂")
)
);
}
}