can someone help me how to make attempts in pin numbers...for like example,,if the user input three times of a wrong pin number,,then the program will exit..help me..this is not really my whole code...
if (pinNum2== bank.arrAccount[2][0][0]){
String w = JOptionPane.showInputDialog("How much you want to withdraw?");
int withdrawAmount =Integer.parseInt(w);
bank.withdrawCash(withdrawAmount);
continue mainLoop;
}
else {
JOptionPane.showMessageDialog(null, "Attemp1.");
}