About Question com.enthuware.ets.scjp.v6.2.82 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
piotrkmiotczyk
Posts: 27
Joined: Mon Sep 22, 2014 1:30 pm
Contact:

About Question com.enthuware.ets.scjp.v6.2.82 :

Post by piotrkmiotczyk »

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().

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scjp.v6.2.82 :

Post by admin »

You are right. Fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests