摘要: int [] numbers = {10, 20, 30, 40, 50}; for(int x : numbers ){ System.out.print( x ); System.out.print(","); } 阅读全文
posted @ 2018-12-21 09:42 ihins 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1.将对象(集合)转化为json字符串: 对象: User u1 = new User(1,"tom","123456"); String js = JsonObject.ToJsonString(u1); sout(js); 集合: List<User> list = new List<User> 阅读全文
posted @ 2018-12-21 09:41 ihins 阅读(136) 评论(0) 推荐(0) 编辑