In the answers you say that you can assign the LinkedList to a Queue variable in this example code:
The answer says that you can assign it to a Queue variable and that Queue has an overloaded remove method that takes an object in to remove. 1 would be autoboxed to an Integer then cast to Object, and return false because it does not exist in the LinkedList. However when I look at the java.util.Queue javadoc, there is no such overloaded method: https://docs.oracle.com/javase/8/docs/api/java/util/Queue.html. It only shows remove() that takes no parameters, and removes only the first element in the queue. Am I misunderstanding something? Thank you!