I would think that the fields on lines 9 through 21 would need to be declared outside the method (but still within the class) for them to be utilizable in the other methods.
Where is the 'start' method being called from?
if(intList.contain(item))the item saying it is not initialized and the contain saying it cannot find symbol total + intValue(); this one here is saying the same as above. total(not initialzed) and intValue(cannot find symbol
public class ParkingSimulator
{
public static void main(String[] args)
{
Scanner userinput = new Scanner(System.in);
//a green car was park for at least 125 minutes
ParkingTicketSimulator parkingTicketSimulator = new ParkingTicketSimulator(); - the error is right here. the constructor ah believe this is
ParkedCar car = parkingTicketSimulator.new ParkedCar("Toyota", 2015, "Green", "ACD321",125);
//60 minutes was purchased
ParkingMeter meter = parkingTicketSimulator.new ParkingMeter(60);
//officer Dibbles is on duty
PoliceOfficer officer = parkingTicketSimulator.new PolicerOfficer("Sgt Robyn Dibbles", 6909);
ParkingTicket ticket = officer.patrol(car, meter);
//did the officer did his job by giving a ticket
if(ticket != null)
{
System.out.println(ticket);
}
else
{
System.out.println("No crime was committed");
}
}
}