Advertisement
Guest User

Untitled

a guest
Jun 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package models;
  7.  
  8. /**
  9. *
  10. * @author rober
  11. */
  12. public class User {
  13. private String username, email, password;
  14.  
  15. public String getUsername() {
  16. return username;
  17. }
  18.  
  19. public void setUsername(String username) {
  20. this.username = username;
  21. }
  22.  
  23. public String getEmail() {
  24. return email;
  25. }
  26.  
  27. public void setEmail(String email) {
  28. this.email = email;
  29. }
  30.  
  31. public String getPassword() {
  32. return password;
  33. }
  34.  
  35. public void setPassword(String password) {
  36. this.password = password;
  37. }
  38. public boolean validate() {
  39. if(username.equals("jose") && email.equals("jose@gmail.com") && password.equals("1234") ){
  40. return true;
  41. }
  42. else {
  43. return false;
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement