Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package dsl;
- import javax.swing.JOptionPane;
- public class DSL {
- public static void main(String[] args) {
- String Eingabe;
- Eingabe = JOptionPane.showInputDialog("Haben sie einen DSL Anschluss");
- if {(Eingabe.equals("JA"));
- JOptionPane.showMessageDialog(null, "Das ist ja schön");}
- else
- if { (Eingabe.equals("Nein"))
- JOptionPane.showMessageDialog(null, "Das ist ja schade, vielleicht kommt ja bald einer");
- else JOptionPane.showMessageDialog(null, "Bitte gebe JA oder Nein ein");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement