首页 > 其他 > 详细

Cannot instantiate the type List<Integer>

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

在使用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;

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!