import java.text.DecimalFormat;
public class CarTest {
public static void main(String[] args) {
DecimalFormat money = new DecimalFormat("$0.00");
ParkedCar vehicle = new ParkedCar("Honda", "Accord", "Black", "452-BTS", 130);
ParkingMeter meter = new ParkingMeter(60);
PoliceOfficer copster = new PoliceOfficer("John Doe", 1337);
ParkingTicket ticket = PoliceOfficer.examine(vehicle, meter);
if(ticket != null) {
//System.out.println(ticket);
System.out.println(vehicle.toString());
System.out.println(meter.toString());
System.out.println(copster.toString());
System.out.println("Fine Total: " + money.format((ticket.getFine())));
}
else {
System.out.println("Car is not doing anything wrong!");
}
}
}