import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        final String password = "s3cr3t!P@ssw0rd";
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();

        if (input.equals(password)) {
            System.out.println("Welcome");
        }
        else {
            System.out.println("Wrong password!");
        }
    }
}

Create 09.PasswordGuess.java