关于Set Method 求助!!
public interface Iterator{public boolean hasNext();
public Object next();
}
interface Set{
public boolean isEmpty();
public int size();
public boolean contains(Object obj);
public boolean equals(Set that);
public boolean containsAll(Set that);
public void clear();
public void add(Object obj);
public void remove(Object obj);
public void addAll(Set that);
public void removeAll(Set that);
public void retainAll(Set that);
}
====================================
问题:
Implement the interfaces (Iterator and Set)
注意不要用Import java的method 要自己把程序写出来 ! 在线等答案
----------------解决方案--------------------------------------------------------
问题问的太抽象了...
----------------解决方案--------------------------------------------------------
估计也就老千这么热情的人能给楼主把全部代码写来
----------------解决方案--------------------------------------------------------
呵呵,这种题目还是不要问的好
JDK的源码都有实现的
----------------解决方案--------------------------------------------------------