How to create a class that implements java.util.collections

后端 未结 6 789
深忆病人
深忆病人 2021-02-10 09:46

I am trying to create a class say MyStack that would implement a java.util.collections class. MyStack will override some methods of the collections cl

6条回答
  •  庸人自扰
    2021-02-10 10:28

    When we implement Collection along with we must implement Iterator also. Which is use to iterate over the item on which you want.

提交回复
热议问题