title: toWriting a program for password, PIN, and PUK
body: <p>I am trying to create a program that will prompt the user to enter the correct password. The third time the password is not correctly entered, the program should ask the user for the PIN, if the user still fails to enter the PUK correctly for 3 attempts, the program now should print SIM BLOCKED.</p>
  
  <p>I guess I have to use a loop but I don't know how. I am but just a newbie.</p>
  
  <pre><code>import java.util.Scanner;
  import java.io.*;
      public class PinPUK {
      public static void main(String[] a) {
      Scanner keyboard = new Scanner(System.in);
      System.out.print("Enter Pin Code: ");
      int choice  = keyboard.nextInt();
      if (choice == 123) {
          System.out.println("Welcome!");    
          }
      else {
          System.out.println("Password is incorrect! Try again!"); // This is the 1st time the wrong password has been entered.
      }                                                           // 2 more and the program should ask for the PIN 3 times if incorrectly entered, and program should ask the PUK 3 times if it is incorrect, the program should now print SIM BLOCKED.
      }
  }
  </code></pre>