PIN Program - Printable Version +- BP Forums (https://bpforums.info) +-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55) +--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56) +---- Forum: Java (https://bpforums.info/forumdisplay.php?fid=19) +---- Thread: PIN Program (/showthread.php?tid=729) |
PIN Program - WitherSlayer - 01-09-2013 Pretty much the same as my password program http://bpforums.info/viewtopic.php?f=23&t=752&sid=ecad9686dbf3441f8e8454c0f07db121 [code2=java]import javax.swing.JOptionPane; public class Codeword { public static void PIN(){ String PIN = "2995";//This is the PIN String input = (JOptionPane.showInputDialog("Insert PIN:"));// This is the question asked if (input.equals(PIN)){ JOptionPane.showMessageDialog(null, "Access Granted");//If you get it right JOptionPane.showMessageDialog(null, "This is the information:BLAH BLAH BLAH BLAH BLAH BLAH");//The information }else{ JOptionPane.showMessageDialog(null, "Access Denied");//If you get it wrong nothing happends } }[/code2] The PIN right now is 2995 |