1.首先我先建一个实体类
public class Bill {
private String type;
private String state;
private Integer money;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public Integer getMoney() {
return money;
}
public void setMoney(Integer money) {
this.money = money;
}
@Override
public String toString() {
return "Bill [type=" + type + ", state=" + state + ", money=" + money + "]";
}
2.接下来就是方法
public class MergeList1 {