Guest User

Untitled

a guest
Apr 16th, 2018
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. String username = "jon.doe@abc.com";
  2. String password = "12345";
  3.  
  4. if(username == null){
  5. Scanner login = new Scanner(System.in);
  6. System.out.println("Enter Username: ");
  7. username = login.nextLine();
  8. System.out.println("Enter Password: ");
  9. password = login.nextLine();
  10. }
  11.  
  12. if(password == null && username != null){
  13. Scanner login = new Scanner(System.in);
  14. System.out.println("Enter Password: ");
  15. password = login.nextLine();
  16. }
Add Comment
Please, Sign In to add comment