title: Java Type Mismatch?
body: <p>Okay so I had to create a program which is a parking ticket simulator. I compiled it and for the most part it works, except for this small dumb error I get which is a type mismatch. It's a lot of code so I'll just give the class which the error is:</p>
  
  <p>KNW_PoliceOfficerClass</p>
  
  <pre><code>public class KNW_PoliceOfficer 
  { 
    private String name;
    private int badge;
    private static double ticket;
  
        public KNW_PoliceOfficer() 
        {
  
        }
  
        public KNW_PoliceOfficer(String poName, int poBadge) 
        {
          name = poName;
          badge = poBadge;
        }
  
        public String getName() 
        {
          return name;
        }
        public int getBadge() 
        {
          return badge;
        }
  
        static KNW_ParkingTicket search(KNW_ParkedCar car, KNW_ParkingMeter meter) 
        {
          int time = KNW_ParkedCar.getMinutes() - KNW_ParkingMeter.getMinPurchased();
  
          if(KNW_ParkedCar.getMinutes() &gt; KNW_ParkingMeter.getMinPurchased()) 
          {
            if(time &lt;= 60) 
            {
              ticket = 25;
            }
            else 
            {
              ticket = 25 + (10 * (time/60));
            }
            return ticket;
          }
  
  
        }
  </code></pre>
  
  <p>KNW_ParkingTicketClass</p>
  
  <pre><code> public class KNW_ParkingTicket 
  {
    private KNW_ParkedCar vehicle;
    private KNW_PoliceOfficer copster;
    private double fine;
    private int minutes;
    private double firstFine = 25;
    private double moreFine = 10;
  
    public KNW_ParkingTicket(KNW_ParkedCar car, KNW_PoliceOfficer cop, double guyFine, int mins) 
    {
     vehicle = car;
     copster = cop;
     fine = guyFine;
     minutes = mins;
    }
  
    public void getTotalFine() 
    {
     int  time = KNW_ParkedCar.getMinutes() - KNW_ParkingMeter.getMinPurchased();
  
     if(time &lt;= 60) 
     {
      fine = firstFine;
     }
     else 
     {
      fine = firstFine + moreFine * (time / 60);
     }
    }
  
    public double getFirstFine() 
    {
     return firstFine;
    }
    public double getMoreFine() 
    {
     return moreFine;
    }
    public KNW_ParkedCar getVehicle() 
    {
     return vehicle;
    }
    public KNW_PoliceOfficer getCopster() 
    {
     return copster;
    }
    public int getMinutes() 
    {
     return minutes;
    }
    public double getFine() 
    {
     return fine;
    }
  
  
   }
  </code></pre>
  
  <p>And here is what the error says:</p>
  
  <pre><code> File: C:\Users\Kyle Welch\KNW_PoliceOfficer.java  [line: 46]
  Error: Type mismatch: cannot convert from double to KNW_ParkingTicket
  </code></pre>
  
  <p>Any help to this would be greatly appreciated!!</p>