开发记录 02
编写older的pojo,编写变量以及set和get:
package com.test.pojo;
public class Older {
    private int id;
    private String name;
    private int age;
    private int height;
    private int weight;
    private int vc;
    private int sleep;
    private int memory;
    private int nutritional;
    private int see;
    private int hear;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public int getHeight() {
        return height;
    }
    public void setHeight(int height) {
        this.height = height;
    }
    public int getWeight() {
        return weight;
    }
    public void setWeight(int weight) {
        this.weight = weight;
    }
    public int getVc() {
        return vc;
    }
    public void setVc(int vc) {
        this.vc = vc;
    }
    public int getSleep() {
        return sleep;
    }
    public void setSleep(int sleep) {
        this.sleep = sleep;
    }
    public int getMemory() {
        return memory;
    }
    public void setMemory(int memory) {
        this.memory = memory;
    }
    public int getNutritional() {
        return nutritional;
    }
    public void setNutritional(int nutritional) {
        this.nutritional = nutritional;
    }
    public int getSee() {
        return see;
    }
    public void setSee(int see) {
        this.see = see;
    }
    public int getHear() {
        return hear;
    }
    public void setHear(int hear) {
        this.hear = hear;
    }
    @Override
    public String toString() {
        return "Older{" +
                "id=" + id +
                ", user='" + name + '\'' +
                ", age='" + age + '\'' +
                ", height='" + height + '\'' +
                ", weight='" + weight + '\'' +
                ", vc='" + vc + '\'' +
                ", sleep='" + sleep + '\'' +
                ", memory='" + memory + '\'' +
                ", nutritional='" + nutritional + '\'' +
                ", see='" + see + '\'' +
                ", hear='" + hear + '\'' +
                '}';
    }
}
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号