What does “The type ArrayList is not generic” mean?

前端 未结 3 1873
猫巷女王i
猫巷女王i 2020-12-06 19:36

I am new to Java and trying to learn the various collections that programmers can use. I imported \"java.util\" into a scrapbook in Eclipse and inspected the following code.

3条回答
  •  情歌与酒
    2020-12-06 20:08

    What comes into my mind:

    • check if the JDK is fully compliant with generics (so that the ArrayList class in your JSE is actually a generic class)
    • check if you don't have another ArrayList which has scope precedence and overrides the standard library definition

提交回复
热议问题