错误:The type List is not generic; it cannot be parameterized with arguments
代码如下:
原因:import java.awt.List;不支持泛型。修改引用uitl包,import java.util.List;
本文探讨了在Java编程中遇到的关于List类型的使用错误,特别关注了一个具体的错误提示:ThetypeListisnotgeneric;itcannotbeparameterizedwitharguments。通过分析,解释了错误产生的原因,并提供了正确的解决方案。文章强调了泛型的重要性及其在避免类型安全问题上的作用。
错误:The type List is not generic; it cannot be parameterized with arguments
代码如下:
原因:import java.awt.List;不支持泛型。修改引用uitl包,import java.util.List;
4362
6万+

被折叠的 条评论
为什么被折叠?