percentEven, won't compile : <p>So this is the percentEven method from the Java textbook. I cannot get it to compile and was wondering if you guys could see my mistake.</p>

<p>"Write a method called "percentEven" that accepts an array of integers as a parameter and returns the percentage of even numbers in the array as a real number."</p>

<p>that is the instructions. this is what I have so far.</p>

<pre><code>import java.util.*;

public class percentEven {

   public class void main ( String [] args ) {
      int [] integers = {34, 56, 4, 17, 9, 83, -300, 5};
      int evenResult = percentEven (integers);
      System.out.println ( " The percent of even numbers is" +          evenResult + "." );
   }

   public class int percentEven ( int [] integers ) {
      int count = 0;
      int even = 0;
      for (i=0,i&lt;integers.length,i++){
         if ( integers[i] % 2 == 0 ){
            even++;
         }
         count++;
      }
      count= (even/count)*100;
      return count;
   }
}
</code></pre>
