Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.codejava.swing.jpanel;
- public class User implements java.io.Serializable {
- private String username;
- private String firstName;
- private String lastName;
- private int ID;
- private static int numberID;
- private String birthday;
- private String city;
- private String number;
- private String lastLogin;
- private char[] password;
- private String filePath;
- public User(String username, String firstName,
- String lastName, String number,
- String birthday, String city,
- char[] password)
- {
- User.numberID++;
- this.username = username;
- this.firstName = firstName;
- this.lastName = lastName;
- this.number = number;
- this.birthday = birthday;
- this.city = city;
- this.password = password;
- this.ID = User.numberID;
- }
- /* public void changeUsername(String username)
- {
- this.username = username;
- }
- public void changeFirstName(String firstName)
- {
- this.firstName = firstName;
- }
- public void changeLastName(String lastName)
- {
- this.lastName = lastName;
- }
- public void changeNumberID(int numberID)
- {
- this.numberID = numberID;
- }
- public void changeBirthday(String birthday)
- {
- this.birthday = birthday;
- }
- public void changeCity(String city)
- {
- this.city = city;
- }
- public void changePassword(char[] password)
- {
- this.password = password;
- } */
- public String getUsername()
- {
- return this.username;
- }
- public String getFirstName()
- {
- return this.firstName;
- }
- public String getLastName()
- {
- return this.lastName;
- }
- public int getNumberID()
- {
- return this.ID;
- }
- public String getBirthday()
- {
- return this.birthday;
- }
- public String getCity()
- {
- return this.city;
- }
- public String getNumber()
- {
- return this.number;
- }
- }
Add Comment
Please, Sign In to add comment