SCJP 80% SCWCD 89%
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Praveen Sharma wrote:2. What is the underlying data structure used for java.util.LinkedList ?
Praveen Sharma wrote:As I understand, java.util.LinkedList class is a doubly linked list. I have two questions in this regard :
1. What is the advantage of a doubly linked list implementation ?
2. What is the underlying data structure used for java.util.LinkedList ?
SCJP 80% SCWCD 89%
Regards, Rene Larsen
Campbell Ritchie wrote:Good point, Rene Larsen. If people wrote their own linked lists, etc, they would understand how they work.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
fred rosenberger wrote:
Campbell Ritchie wrote:Good point, Rene Larsen. If people wrote their own linked lists, etc, they would understand how they work.
Catch-22. How can you write one if you don't know how it is supposed to work?
Regards, Rene Larsen
Campbell Ritchie wrote:You can always find an example on Google to copy. Or in many of the books; Deitel and Deitel for example shows one how to build a linked list.
Regards, Rene Larsen
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
fred rosenberger wrote:and copying code isn't writing it yourself, is it?
(really, i'm just being a pest today...don't take my arguments too seriously)
Regards, Rene Larsen
Campbell Ritchie wrote:I don't think copying such code is cheating. No more than copying letters printed in a book onto paper with a pencil when learning to write is cheating. Passing it off as one's own code would be cheating, however.
Regards, Rene Larsen
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |