invalid syntax, Queue is an interface so you cannot use the new key word in java to make a new object of it.

if you are determining the size, then use the size() method.
comparing head == null is...