?? customer.java
字號:
package mypack;
import java.util.Set;
import java.util.HashSet;
public class Customer {
private Long id;
private String name;
private int age;
private Set orders=new HashSet();
/** 完整的構造方法*/
public Customer(String name, int age,Set orders) {
this.name = name;
this.age = age;
this.orders = orders;
}
/** 默認構造方法*/
public Customer() {}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return this.age;
}
public void setAge(int age) {
this.age = age;
}
public Set getOrders() {
return this.orders;
}
public void setOrders(Set orders) {
this.orders = orders;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -