Removes and returns the first element in this list.
Removes and returns the first element in this list.For array lists this method has a time complexity of O(N), with N being the size of the list.
For linked lists this method has a time complexity of O(1).