I want to add a trail to a player on a grid, similar to that of the game "Snake." However, when I go to make an array list, I get an error. Here is the code for creating it.
ArrayList<Integer, Integer> trail = new ArrayList<Integer, Integer>();
I get the error "Incorrect number of arguments."
How am I supposed to make this to keep track of which coordinates have been gone over by the player?