delete duplicates in java arraylist

前端 未结 4 1665
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-23 14:16

Thanks Marko. I rewrite the code. try to make it simple. this time it can really compile. but it can only delete duplicate items sit next to each other. for example, if i put in

4条回答
  •  Happy的楠姐
    2021-01-23 15:05

    From what you're saying it sounds like when you run your assignment you are not setting your classpath correctly so that it includes the compiled class file of the SetListType. You should be able to fix this by setting the -classpath option when running your main method to point to this and any other classes your assignment relies on.

提交回复
热议问题