LinkedList container = new LinkedList();
"This is not valid because event though LinkedList has add() method, it does not have poll() method, which is used in the code."
--------------------------------------------
According to docs, LinkedList does have a poll() method.
http://docs.oracle.com/javase/1.5.0/doc ... dList.html
Not that I understand what it's for, since it seems to duplicate remove().
About Question com.enthuware.ets.scjp.v6.2.82 :
Moderators: Site Manager, fjwalraven
-
- Posts: 27
- Joined: Mon Sep 22, 2014 1:30 pm
- Contact:
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.82 :
You are right. Fixed.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 14 guests