Hey guys,
I’v got an interface named Entity.
In a separate class I am trying to make an array list of “Entity”, here is my code for it.
Player player1 = new Player();
public static ArrayList<Entity> entities = new ArrayList <Entity>();
entities.add( player1);
on line 3 I keep getting an error that on the period that says “misplaced construct” and another error on line 3 where it says player1 that reads “variable decorator id expected after this token”
I’m pretty stuck here and any help would be greatly appreciated (: