Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Login {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- String username;
- String password;
- username = "SEIS 602";
- System.out.println("Please enter your username:");
- username = input.next(); // getting a string
- System.out.println("Please enter password");
- password = input.next(); // getting a password
- System.out.println("You are logged in");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement