Bank.java
import java.util.*;
class Bank{
public static void main (String args[]) {
int A=1;
Scanner s=new Scanner(System.in);
if(p>1000&&p<9999)
{
System.out.println("Please Enter Four Digits valid Pin Number");
int p=s.nextInt();
}
if(p==1456)
System.out.println("You Have Successfully Enter valid Pin ");
do
{
A++;
switch(A)
{
case 1 : System.out.println("You have Enter Invalid pin");
System.out.println("You have Two more Chances left");
break;
case 2 : System.out.println("Two Times Entered Invalid pin");
System.out.println("You have one More Chance Otherwise Account will be Blocked");
break;
case 3 : System.out.println("Sorry Your Account is Blocked. please Contact Administrator");
break;
default:System.out.println("invalid pin");
}
}while(A<=3)
}