zoukankan      html  css  js  c++  java
  • Java学习11.14(人口普查)

    人口普查系统——bean层

     1 public class Grade
     2 {
     3     private String name;
     4     private String sex;
     5     private String nation;
     6     private String ID;
     7     private String hometype;
     8     private String roomtype;
     9     private String roomnumber;
    10     private String xueli;
    11     private String square;
    12  
    13     public void setID(String ID) {
    14         this.ID = ID;
    15     }
    16     public String getID() {
    17         return ID;
    18     }
    19     public String getname() {
    20         return name;
    21     }
    22     public void setName(String name) {
    23         this.name = name;
    24     }
    25     public String getsex() {
    26         return sex;
    27     }
    28     public void setsex(String sex) {
    29         this.sex = sex;
    30     }
    31     public String getNation() {
    32         return nation;
    33     }
    34     public void setNation(String nation) {
    35         this.nation = nation;
    36     }
    37     public String gethometype() {
    38         return hometype;
    39     }
    40     public void sethometype(String hometype) {
    41         this.hometype = hometype;
    42     }
    43     public String getroomtype() {
    44         return roomtype;
    45     }
    46     public void setroomtype(String roomtype) {
    47         this.roomtype= roomtype;
    48     }
    49     public String getxueli() {
    50         return xueli;
    51     }
    52     public void setxueli(String xueli) {
    53         this.xueli=xueli;
    54     }
    55     public String getsquare() {
    56         return square;
    57     }
    58     public void setsquare(String square) {
    59         this.square=square;
    60     }
    61     public String getroomnumber() {
    62         return roomnumber;
    63     }
    64     public void setroomnumber(String roomnumber) {
    65         this.roomnumber=roomnumber;
    66     }
    67 
    68     public Grade(String hometype,String roomtype,String square,String roomnumber,String name,String ID,String sex,String nation,String xueli) {
    69         this.ID = ID;
    70         this.roomnumber=roomnumber;
    71         this.square=square;
    72         this.xueli=xueli;
    73         this.roomtype= roomtype;
    74         this.hometype = hometype;
    75          this.nation = nation;
    76          this.sex = sex;
    77          this.name = name;
    78     }
    79     
    80 }

    user类

     1 public class User {
     2     
     3     private String username;
     4     private String password;
     5     public String getUsername() {
     6         return username;
     7     }
     8     public void setUsername(String username) {
     9         this.username = username;
    10     }
    11     public String getPassword() {
    12         return password;
    13     }
    14     public void setPassword(String password) {
    15         this.password = password;
    16     }
    17     public User(String username, String password) {
    18         super();
    19         this.username = username;
    20         this.password = password;
    21     }
    22 
    23 }
  • 相关阅读:
    virtualbox centos安装增强工具和问题详解
    Failed to load SELinux policy. Freezing
    .net mvc项目本地调试:浏览器一直转圈无法访问
    System.Security.Cryptography.CryptographicException: 出现了内部错误
    【SymmetricDS】实现新的数据库方言
    【SymmetricDS】SymmetricDS是如何工作的
    【Java】java.util.Objects 源码学习
    【Spring-web】AsyncRestTemplate源码学习
    【Spring-web】RestTemplate源码学习——梳理内部实现过程
    【Spring-web】RestTemplate源码学习
  • 原文地址:https://www.cnblogs.com/Lizhichengweidashen/p/14157496.html
Copyright © 2011-2022 走看看