Incompatible types??? Counting through an array of Strings
having a problem counting through an array of Strings. I am trying to count how many employee have the last name Smith.
final int EMPLOYEE=5;
Employee id= new Employee[EMPLOYEE];
id=new Employee("john", "Smith");
id=new Employee("Mary", "King");
id=new Employee("Josh", "Smith");
for (int index=0; index < id.length; index++)
System.out.println("There are" + count + "with the last name Smith");
I get an error of incompatible types. int and String.???