浏览代码

finalizing code

master
David 4 年前
父节点
当前提交
e955c1f40d
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      src/ChainQueue.java

+ 5
- 5
src/ChainQueue.java 查看文件

@@ -104,11 +104,6 @@ public class ChainQueue<E> implements Queue<E> {
return temp;
}

@Override
public E element() {
return null;
}

@Override
public E peek() { // only "see" into the queue and do not remove anything
if (!this.isEmpty()) {
@@ -119,6 +114,11 @@ public class ChainQueue<E> implements Queue<E> {

/*** the following is not implemented because it's not needed here ***/

@Override
public E element() {
return null;
}

@Override
public Iterator<E> iterator() {
return null;


正在加载...
取消
保存