Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JFrame;
- import javax.swing.JOptionPane;
- public class RunCarWach
- {
- public static void main(String[] argv) throws Exception
- {
- JFrame frame = new JFrame();
- String message = "Welcom customer insert your card ";
- JOptionPane.showMessageDialog(frame, message);
- String name1 = JOptionPane.showInputDialog(null, "What type of wash do you want: \n"
- + "\n"
- + " type 1 if you want Foamy wash "
- + "\n"
- + " type 2 if you want TunnelWash wash"
- + "\n"
- + " type 3 if you want WaxWash wash"
- + "\n"
- + " type 4 if you want VipWash wash"
- );
- System.out.println("you choose number: " +name1);
- if (name1.equals("1")){
- JOptionPane.showConfirmDialog(null, "you choose nr 1 Foamy wash ");
- }
- if (name1.equals("2")){
- JOptionPane.showConfirmDialog(null, "you choose nr 2 TunnelWash wash ");
- }
- if (name1.equals("3")){
- JOptionPane.showConfirmDialog(null, "you choose nr 3 WaxWash wash ");
- }
- if (name1.equals("4")){
- JOptionPane.showConfirmDialog(null, "you choose nr 4 VipWash wash ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement