How to get Node component in linked list?

前端 未结 1 1176
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 06:43

Learnt how to reverse-a-linked-list. The link is very descriptive and clear. But somehow I\'m not getting how to get the Node component which needs to be passed to below met

相关标签:
1条回答
  • 2020-12-12 07:14

    You'll have to write your own LinkedList class from scratch to implement that method. java.util.LinkedList doesn't expose its internal implementation. For example, the nodes are called entries instead, and that class, java.util.LinkedList.Entry, is private.

    0 讨论(0)
提交回复
热议问题