Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. public void login() {
  2.         String username;
  3.         String password;
  4.         System.out.println("Please type in your username: ");
  5.         username = scan.next();
  6.         System.out.println("Please type in your password: ");
  7.         password = scan.next();
  8.         for (user user : userList) {
  9.             if (user.getUserName().equals(username)) {
  10.                 if (user.getPassWord().equals(password)) {
  11.  
  12.                 }
  13.             }
  14.         }
  15.  
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement