• JAVA日报


    换汤不换药之家庭记账本app开发(bean)

    package bean;

    public class user {
    private String date;
    private String eat;
    private String play;
    private String clothes;
    private String live;
    private String usual;
    public user() {}
    public user(String date2, String eat2, String play2, String clothes2, String live2, String usual2) {
    date=date2;
    eat=eat2;
    play=play2;
    clothes=clothes2;
    live=live2;
    usual=usual2;
    }
    public String get(String str) {
    String temp = null;
    if(str.equals("eat")) {
    temp=eat;
    }else if(str.equals("date")) {
    temp=date;
    }else if(str.equals("play")) {
    temp=play;
    }else if(str.equals("clothes")) {
    temp=clothes;
    }else if(str.equals("live")) {
    temp=live;
    }else if(str.equals("usual")) {
    temp=usual;
    }
    return temp;
    }
    public void set(String str,String temp) {
    if(str.equals("eat")) {
    eat=temp;
    }else if(str.equals("date")) {
    date=temp;
    }else if(str.equals("play")) {
    play=temp;
    }else if(str.equals("clothes")) {
    clothes=temp;
    }else if(str.equals("live")) {
    live=temp;
    }else if(str.equals("usual")) {
    usual=temp;
    }
    }

    public String getEat() {
    return eat;
    }

    public String getDate() {
    return date;
    }

    public String getPlay() {
    return play;
    }

    public String getClothes() {
    return clothes;
    }

    public String getLive() {
    return live;
    }

    public String getUsual() {
    return usual;
    }

    public void setEat(String eat) {
    this.eat = eat;
    }

    public void setDate(String date) {
    this.date = date;
    }

    public void setPlay(String play) {
    this.play = play;
    }

    public void setClothes(String clothes) {
    this.clothes = clothes;
    }

    public void setLive(String live) {
    this.live = live;
    }

    public void setUsual(String usual) {
    this.usual = usual;
    }
    }
  • 相关阅读:
    DHCP服务器
    继承、抽象、多态
    范围随机数Random
    阿里、北理工、清华以及华为的镜像站
    创建kafka生产对象
    kafka消费者的配置
    Kafka 流数据 SQL 引擎 -- KSQL
    认证maven工程
    基础算法
    Java基础
  • 原文地址:https://www.cnblogs.com/mumulailai/p/14909746.html
Copyright © 2020-2023  润新知