Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- public class Driver {
- public static void main(String[] args) {
- //Premium = (CAR_VALUE * .05)*DRIVER_AGE*#_TICKETS=?
- int age;
- String age_response;
- age_response = JOptionPane.showInputDialog(null, "What is your age?");
- age = Integer.parseInt(age_response);
- if (age<25)
- Integer.parseInt(age_response);
- if ( (age>25)||(age<=29));
- }
- }
- -------------------------------------------------------------------------------
- //import javax.swing.*;
- public class Main {
- public static void main(String[] args) {
- Driver method = new Driver();
- }
- }
Add Comment
Please, Sign In to add comment