1、使用整型列表

List<int> lstInt=new List<int>();

结果不对,报的错误是:Syntax error, insert "Dimensions" to complete ReferenceType

然后百度之:使用列表时,必须使用引用类型,不能使用基本类型的int

改成:

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

时报错:Cannot instantiate the type List<Integer>

再百度:List<int> lstInt=new  ArrayList<Integer>(); 写成这样才对。

2、使用List<String>

List<String> lstStr=new LinkedList<String>();

3、使用Map

引入import java.util.HashMap;

java语句:Map<String, Object> map = new HashMap<>();

最新文章

  1. 前端自动化测试 —— TDD环境配置(React+TypeScript)
  2. JavaScript对象状态
  3. AutoVFL(适配)
  4. python简明手册学习
  5. English随笔1
  6. Searching External Data in SharePoint 2010 Using Business Connectivity Services
  7. vb6 判断64位操作系统
  8. (转)C#中的Dictionary字典类介绍
  9. python中的builtin函数详解-第二篇
  10. storm启动流程
  11. 模仿快递路线图的html, css 样式
  12. P1130 红牌
  13. tomcat去除项目名部署
  14. FluentAPI详细用法
  15. 汇编-MOV指令
  16. Linguistic Data Consortium (LDC)
  17. ckeditor源码编辑模式,添加style、javascript内容丢失的解决
  18. Selenium自动化测试第二天(上)
  19. sql one
  20. TCP深入详解

热门文章

  1. Oracle存储过程-自定义数据类型,集合,遍历取值
  2. Openvpn 本地密码验证
  3. iOS中属性与成员变量的区别
  4. 怎么写jq插件?
  5. Mybatis 开启事务@Transactional
  6. 0512 Scrum 项目3.0
  7. easy ui datagrid 中getSelections方法只能获取一行数据
  8. Codeforces Round #379 (Div. 2) 解题报告
  9. 从0到1---“保多多”APP的开发(二)
  10. CSS强制中英文换行与不换行