Advertisement
Guest User

Untitled

a guest
May 24th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. package dsl;
  2.  
  3. import javax.swing.JOptionPane;
  4.  
  5. public class DSL {
  6.  
  7. public static void main(String[] args) {
  8.  
  9. String Eingabe;
  10.  
  11. Eingabe = JOptionPane.showInputDialog("Haben sie einen DSL Anschluss");
  12.  
  13. if (Eingabe.equals("JA"));
  14. {JOptionPane.showMessageDialog(null, "Das ist ja schön");}
  15.  
  16. else
  17.  
  18. if (Eingabe.equals("Nein"))
  19. {JOptionPane.showMessageDialog(null, "Das ist ja schade, vielleicht kommt ja bald einer");}
  20.  
  21. else JOptionPane.showMessageDialog(null, "Bitte gebe JA oder Nein ein");
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement