摘要: 项目中经常遇到java 后台 list中的数据要通过json 传入到前台页面中这时 就需要去除 list中给我加上的 [] 。方法如下1.重写AbstractCollection类的toString 方法private String toString(Collection collection){ StringBuffer stringbuffer = new StringBuffer(); Iterator iterator1 = collection.iterator(); boolean flag = iterator1.hasNext(); ... 阅读全文
posted @ 2014-03-20 14:56 登山看日出 阅读(4826) 评论(0) 推荐(0) 编辑