Cannot instantiate the type List<Integer>
2014-09-02 20:15
465 查看
在使用java.util.List; 的时候,把语句写成了:
List<Integer> arr = new List<Integer>();
导致错误:
Cannot instantiate the type List<Integer>
正确写法是:
List<Integer> arr = new ArrayList<Integer>();
List<Integer> arr = new List<Integer>();
导致错误:
Cannot instantiate the type List<Integer>
正确写法是:
List<Integer> arr = new ArrayList<Integer>();
相关文章推荐
- Cannot instantiate the type List<Integer>
- The type List is not generic; it cannot be parameterized with arguments <Integer>
- Cannot instantiate the type List<Product>
- Cannot instantiate the type List<View>
- Cannot instantiate the type Map<String,Boolean>
- the type List is not generic; it cannot be parameterized with arguments<T>解决办法
- The type JComboBox is not generic; it cannot be parameterized with arguments <String>错误
- The type List is not generic; it cannot be parameterized with arguments<T>
- There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key ''.
- Android错误:方法setListAdapter(ArrayAdapter<String>) is undefined for the type String
- Tomcat --> Cannot create a server using the selected type
- The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)
- Tomcat --> Cannot create a server using the selected type
- Tomcat --> Cannot create a server using the selected type
- 取出List<Integer>中的数据
- Type mismatch: cannot convert from Enumeration<String> to Enumeration<Object>
- 定义一个静态方法,该方法可以接收一个List<Integer>,方法内对List进行排序
- Tomcat --> Cannot create a server using the selected type
- Tomcat --> Cannot create a server using the selected type
- 获取 List<Object[]>,List<Object>,List<BreakType>中的两个变量