Advertisement
Guest User

Validation

a guest
Jan 6th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. //you can simply use if or if else
  2. if(getPassword() != null && !getPassword().equals(""))
  3. {
  4. //password is valid
  5. }
  6. //if you want to show error you can add else here
  7. if(getEmail() != null && !getEmail().equals(""))
  8. {
  9. //email is valid
  10. }
  11. //if you want to show error you can add else here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement