ITeye博客

Cannot instantiate the type List<Integer>

testcs_dn · 2014-08-09 19:14 · Markdown

在使用java.util.List;的时候,把语句写成了:

List<Integer> arr = new List<Integer>();

导致错误:

Cannot instantiate the type List<Integer>

正确写法是:

List<Integer> arr = new ArrayList<Integer>();

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。