1. package bookstore; 2. 3. public class User 4. { 5. private String userId;//用户Id 6. private String password;//密码 7. private String userName;//用户名 8. public String getPassword() { 9. return password; 10. } 11. public String getUserId() { 12. return userId; 13. } 14. public String getUserName() { 15. return userName; 16. } 17. public void setPassword(String password) { 18. this.password = password; 19. } 20. public void setUserId(String userId) { 21. this.userId = userId; 22. } 23. public void setUserName(String userName) { 24. this.userName = userName; 25. } 26. } |