Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JOptionPane;
- public class latex {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- String pass = "password";
- String inpass = JOptionPane.showInputDialog(null, "Ange ditt lösenord:");
- if (inpass.equals(pass)) {
- if (JOptionPane.showConfirmDialog(null,"Vad ska man ha på pizzan?") == 0)
- {
- System.out.println("Givetvis ska man det!") } }
- else System.out.println("Killen tror han är hackerman, så var inte fallet.");
- }
- }
Add Comment
Please, Sign In to add comment