Advertisement
Guest User

Untitled

a guest
May 16th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2. import java.util.Scanner;
  3.  
  4. public class Login {
  5.  
  6. public static void main(String[] args) {
  7. Scanner input = new Scanner(System.in);
  8.  
  9. String username;
  10. String password;
  11.  
  12. username = "SEIS 602";
  13.  
  14. System.out.println("Please enter your username:");
  15. username = input.next(); // getting a string
  16.  
  17. System.out.println("Please enter password");
  18. password = input.next(); // getting a password
  19.  
  20.  
  21. System.out.println("You are logged in");
  22.  
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement