Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main{
- public static void main(String[] args) {
- Scanner str = new Scanner(System.in);
- System.out.print("Enter your login: ");
- String login = str.nextLine();
- if(login.equals("Admin")) {
- System.out.print("Enter your password: ");
- String password = str.nextLine();
- if(password.equals("123")) {
- System.out.print("Welcome...");
- }
- } else {
- System.out.println("Error");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement