阅读背景:

如何在Java中的循环链接列表中设置下一个值?

来源:互联网 

This is what I have so far:

这是我到目前为止:

public void insert(int position, ValueNode value) {
  if (position == 1) {
    this.nextInRow = value;
  }
  ValueNode current = this.getFirst();
  if (position > 1) {
    current.setNext(current.next);
  }
    value.setNextInRow(current.getNext());
}
publ



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: