title: Why wont my else if statement work
body: <pre><code>public class ComputePay
  {
     /**
        Compute pay (including overtime) for worker. Hours in excess of 40 hours
        are paid at time-and-a-half.
        @param wage the hourly wage for the employee
        @param hoursWorked the number of hours worked by employee in one week
        @return the amount of pay employee earned
     */
   public static double payForWeek(double wage, double hoursWorked)
     {      
         double totalPay = 0.0;
  
                if (hoursWorked &lt;= 40);
                 {
                     totalPay = hoursWorked*wage;
                 }
                 else if(hoursWorked &gt; 40);
                   {
                        totalPay = (40*wage+(wage*(hoursWorked-40)));
                    }
         return totalPay;
     }
  }
  </code></pre>
  
  <p>It is giving me a else without if error. Not sure what I am doing wrong here</p>