I am having a problem with this code:
List<Enemy> Player1 = getObjectsInRange( 2000,Player1.class);
if(Enemy.size()!=0){
pointAtObject(Enemy.get(0)); move(6.0);
}
I have it in the act().
It is complaining and saying: cannot find symbol - method size()
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)