2018年7月20日

JSoup抓取本地页面

摘要: File in = new File("C:/Users/li/Desktop/2.html"); Document doc01 = Jsoup.parse(in, "UTF-8", ""); Element s = doc01.getElementsByClass("show-solution-b 阅读全文

posted @ 2018-07-20 10:03 天天天12345 阅读(89) 评论(0) 推荐(0) 编辑

定义静态map

摘要: public final static Map<String, String> header = new HashMap<String, String>(); static { header.put("Accept-Encoding", "gzip, deflate"); header.put("A 阅读全文

posted @ 2018-07-20 10:01 天天天12345 阅读(810) 评论(0) 推荐(0) 编辑

java让数字显示千分位 mark

摘要: /** * 格式化数字为千分位显示; * @param 要格式化的数字; * @return */ public static String fmtMicrometer(String text) { DecimalFormat df = null; if(text.indexOf(".") > 0) 阅读全文

posted @ 2018-07-20 10:00 天天天12345 阅读(4393) 评论(0) 推荐(0) 编辑

导航