您的位置:首页 > 其它

如何把List 里的数据读出来 赋值给String?

2009-10-20 15:16 316 查看
List<String[]> userList = new ArrayList();
for (int jj = 0; jj < 10; jj++) {
String[] dto = new String[2];
dto[0] = "编号" + jj;
dto[1] = "名称rname" + jj;
userList.add(dto);
}
if (userList != null && userList.size() > 0) {
for (int i = 0; i < userList.size(); i++) {
String[] ab = userList.get(i);
System.out.println(ab.toString());
for (int j = 0; j < ab.length; j++) {
String b = ab[j];
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐