Guest User

Untitled

a guest
Feb 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import javax.swing.*;
  2.  
  3. public class Driver {
  4.  
  5. public static void main(String[] args) {
  6.  
  7. //Premium = (CAR_VALUE * .05)*DRIVER_AGE*#_TICKETS=?
  8.  
  9. int age;
  10.  
  11. String age_response;
  12. age_response = JOptionPane.showInputDialog(null, "What is your age?");
  13. age = Integer.parseInt(age_response);
  14.  
  15. if (age<25)
  16. Integer.parseInt(age_response);
  17. if ( (age>25)||(age<=29));
  18.  
  19. }
  20.  
  21. }
  22.  
  23.  
  24. -------------------------------------------------------------------------------
  25.  
  26.  
  27. //import javax.swing.*;
  28.  
  29. public class Main {
  30.  
  31. public static void main(String[] args) {
  32.  
  33. Driver method = new Driver();
  34.  
  35.  
  36.  
  37.  
  38. }
  39. }
Add Comment
Please, Sign In to add comment