package KindMethod1;
// 菜单
public class Food {
private String food; //餐品信息
private double price; //价格
private int like; //点赞数
public Food() {
super();
}
public Food(String food, double price,int like) {
super();
this.food = food;
this.price = price;
this.like=like;
}
public String getFood() {
return food;
}
public void setFood(String food) {
this.food = food;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public int getLike() {
return like;
}
public void setLike(int like) {
this.like = like;
}
}
package KindMethod1;
// 步骤具体实现
public class Method{
private NewMessage[] newmessage; //个人信息数组
Food[] food; //菜单数组
int num=0;
int num1=0;
// 初始化信息数组长度
public

最低0.47元/天 解锁文章
1662

被折叠的 条评论
为什么被折叠?



