Advertisement
Guest User

imemil

a guest
Mar 28th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class BATM {
  3.  
  4. public static void main(String[] args) {
  5. Scanner input = new Scanner(System.in);
  6.  
  7. String username;
  8. String password;
  9.  
  10. System.out.println("Log in:");
  11. System.out.println("Indtast username: ");
  12. username = input.nextLine();
  13.  
  14. System.out.println("Indtast password: ");
  15. password = input.nextLine();
  16.  
  17. users check = new users(username, password);
  18.  
  19. if(check.auth())
  20. System.out.println("You are logged in");
  21.  
  22.  
  23.  
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement