Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mattroseb8wk2;
- import java.util.Scanner;
- public class Day08A {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String pinCode;
- String correctCode = "345678";
- System.out.print("Enter PIN code : ");
- pinCode = sc.nextLine();
- //using 7F file as an inspiration
- if (pinCode.equals(correctCode)) {
- System.out.println("Authentication complete");
- } else {
- System.out.println("Please try again");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment