zoukankan      html  css  js  c++  java
  • 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;
    }
    }
  • 相关阅读:
    数组分割成多个数组
    node-inspector调试工具
    6.17周六随写
    JavaScript设计模式
    JavaScript设计模式
    async源码学习
    Linux信号列表
    php常用Stream函数集介绍
    php进程控制
    php 单例模式与常驻服务
  • 原文地址:https://www.cnblogs.com/mumulailai/p/14909746.html
Copyright © 2011-2022 走看看