码迷,mamicode.com
首页 > 其他好文 > 详细

Cannot instantiate the type List<Integer>

时间:2014-09-02 21:13:45      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:使用   java   ar   art   div   sp   amp   on   c   

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

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

导致错误:

Cannot instantiate the type List<Integer>

正确写法是:

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

Cannot instantiate the type List&lt;Integer&gt;

标签:使用   java   ar   art   div   sp   amp   on   c   

原文地址:http://www.cnblogs.com/mfrbuaa/p/3952198.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!