import java.util.Scanner;public class CarTester{ public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("What type of car do you have?"); String name = in.nextLine(); System.out.println("What is it's fuel economy in miles per gallon (English System)?"); double economy = in.nextDouble(); System.out.println("How many miles are on the vehicle?"); double mileage = in.nextDouble(); Car car1 = new Car(name, economy, mileage); System.out.println("How many gallons of gas should be added (less than 13.8 gallons, please)?"); double gas = in.nextDouble(); car1.addGas(gas); System.out.println("How far will you drive?"); double miles = in.nextDouble(); car1.drive(miles); System.out.println("You have " + car1.getRemainingGas() + " gallons left."); System.out.println("The car has " + car1.getCurrentMileage() + " miles on the clock."); }}