Try using foreach()
for(Employee employee : employees())
{
System.out.println(employee.name);
}
solved Incrementing a for loop over a List of java objects [duplicate]
Try using foreach()
for(Employee employee : employees())
{
System.out.println(employee.name);
}
solved Incrementing a for loop over a List of java objects [duplicate]