package com.example.health.Bean; //这个接口告诉Java序列化类这个类是可以进行对象序列化的 import java.io.Serializable; public class FoodBean implements Serializable { private String foodName; private String foodCalorie; private String foodIntroduce; private int picID; public FoodBean(String foodName, String foodCalorie, String foodIntroduce, int picID) { this.foodName = foodName; this.foodCalorie = foodCalorie; this.foodIntroduce = foodIntroduce; this.picID = picID; } public FoodBean() { } public String getFoodName() { return foodName; } public void setFoodName(String foodName) { this.foodName = foodName; } public String getFoodCalorie() { return foodCalorie; } public void setFoodCalorie(String foodCalorie) { this.foodCalorie = foodCalorie; } public String getFoodIntroduce() { return foodIntroduce; } public void setFoodIntroduce(String foodIntroduce) { this.foodIntroduce = foodIntroduce; } public int getPicID() { return picID; } public void setPicID(int picID) { this.picID = picID; } }