摘要: 基本包装类的List 与 Set 实例对象转化为字符串 当 hello 为 空List时,hello.toString()为 "[]";当hello 不为空List时,hello.toString()为 "[1,2,3,44,2222]"之类的数据 hello为空或者不为空的情况下,通过kk.sub 阅读全文
posted @ 2016-08-05 10:37 窗外是绿色的 阅读(316) 评论(0) 推荐(0) 编辑
摘要: List<StudentClass> datas = new ArrayList<StudentClass>(); datas = ......; Iterator<StudentClass> itreator = datas.iterator(); while(iterator.hasNext() 阅读全文
posted @ 2016-08-05 10:18 窗外是绿色的 阅读(161) 评论(0) 推荐(0) 编辑
摘要: json字符串转换为bean对象 String json = "{name:'hello',age:'12'}"; Muser user = (Muser) JSONObject.toBean(json, Muser.class); jsonArray字符串转换为 List实例对象 String r 阅读全文
posted @ 2016-08-05 10:03 窗外是绿色的 阅读(1546) 评论(0) 推荐(0) 编辑