import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @author lei * 2011-9-2 */ public class StringUtils { public static String replaceBlank(String str) { String dest = ""; if (str!=null) { Pattern p = Pattern.compile("\\s*|
/** * Created by admin on 2017/7/26. */ public class NewPost { private String title; private String content; public NewPost(){ } public NewPost(String title,String content){ setTitle(title); setContent(content); } public String getTitle() { return ti
下载引入包gson-2.0.jar 1.字符转数据 final Map map = new HashMap();map.put("contents", "[{\"Id\":\"111\",\"AcceptNum\":222,\"ArchiveNum\":333,\"ArchivRate\":444,\"CUR_DATA_DT\":555},{\&quo
转自:http://blog.csdn.net/lanmanck/article/details/8638391 上传源码时最好把空格行去掉,以前介绍了使用notepad++,现在发现,习惯用source insight的人士也可以很easy的去掉了: Options->Perferences->Files-> Remove extra white space when saving.保存时自动去除每行尾部的空格和tab. 以下是另一个兄弟的心得: http://blog.csdn.ne