Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. private void btnLoginClick(ActionEvent event) {
  2. String name = txtUser.getText();
  3. String password = txtPassword.getText();
  4. User user = new User(name , password);
  5.  
  6. if(name == "felipe"){
  7. System.out.println("Logado");
  8. } else{
  9. System.out.println("ERRO AO LOGAR");
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement