문제

Here, I see that Bag class should be in java.util.Collection but when I try to use it, I get cannot be resolved to a type error.

Should I copy+pase this or is there some library missing?

도움이 되었습니까?

해결책

Those are 2 different classes neither of which are part of the JDK. One is a custom class that needs to be added to the build path whereas the other is part of the Apache Commons library which need to be added to the classpath.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top