CompanyDAO companyDAO = new CompanyDAO();
List companyList = companyDAO.getAllCompanyList();
MycompanyList包含了这样一个数据:类型不匹配:不能从对象转换为列表
[[1, Agastha Medical Center], [2, Agastha Asthma]]
现在我想重复的值,我想传递的值为1查询,但是当我正在把这个内部的for循环我越来越
for(int k=0;k<=companyList.size();k++){
List companyId =companyList.get(k); // [1, Agastha Medical Center] for k=0;
Type mismatch: cannot convert from Object to List
我需要读取for循环里面的值1我怎么能做到这一点?
不使用普通的'List',使用类型'名单' –