List list2 = new ArrayList();
这句有什么错误吗?
警告是List is a raw type. References to generic type List<E> should be parameterized
我看不懂,麻烦有经验的同志给解释下~
这句有什么错误吗?
警告是List is a raw type. References to generic type List<E> should be parameterized
我看不懂,麻烦有经验的同志给解释下~
我这么写之后,new ArrayList();
提示Type safety: The expression of type ArrayList needs unchecked conversion to conform to
List<String>警告,什么意思呀?未检测的转化?
我这么写之后,ArrayList 还是会警告~还是2楼说的那个泛型警告,为什么?