import java.util.Collection; import java.util.Iterator; import java.io.Serializable; import java.lang.Cloneable; /* *Eclipse JDT will not compile the following class declertion *It claims i have not implemented the iterator() method. (which i have) */ public class test implements Collection /* * The following definitions however do work correctly * public class test implements Collection * public class test * public class test implements Collection * public class test implements Collection */ { public int size() { // TODO Auto-generated method stub return 0; } public boolean isEmpty() { // TODO Auto-generated method stub return false; } public boolean contains(Object arg0) { // TODO Auto-generated method stub return false; } public Iterator iterator() { // TODO Auto-generated method stub return null; } public Object[] toArray() { // TODO Auto-generated method stub return null; } public Object[] toArray(Object[] arg0) { // TODO Auto-generated method stub return null; } public boolean add(Object arg0) { // TODO Auto-generated method stub return false; } public boolean remove(Object arg0) { // TODO Auto-generated method stub return false; } public boolean containsAll(Collection arg0) { // TODO Auto-generated method stub return false; } public boolean addAll(Collection arg0) { // TODO Auto-generated method stub return false; } public boolean removeAll(Collection arg0) { // TODO Auto-generated method stub return false; } public boolean retainAll(Collection arg0) { // TODO Auto-generated method stub return false; } public void clear() { // TODO Auto-generated method stub } }