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

后端 未结 6 791
深忆病人
深忆病人 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:41

    Instead of:

    public class MyStak implements java.util.Collection{
    

    try:

    public class MyStak implements java.util.Collection{
    

提交回复
热议问题