public class Book {
private String name;
private int price;
public Book(String name, int price) {
this.name = name;
this.price = price;
}
public String getName() {
return name;
}
public int getPrice() {
return price;
}
public void setName(String name) {
this.name = name;
}
public void setPrice(int price) {
this
java 对象数组 对象相同元素去重
于 2020-09-18 09:59:12 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)