Hey guys, I was just looking into LinkedList and I came accross couple of methods. I quickly made a linkedlist and added numbers from 0 to 9 in the list then tried different methods such as pop poll, removeFirst and they all returned the same answer from 0 to 9. I am wondering what is the actual difference
between those methods?
Slavi
94
Master Poster
Featured Poster
Recommended Answers
Jump to PostThey are all three the same. Their names come from different ways of looking at and thinking about lists, but in the end they all do the same thing (remove and return the first item in the list).
All 2 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Slavi
94
Master Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.