摘要: public static void main(String[] args) { Integer i = 0; printClassMessage(i); } private static void printClassMessage(Object obj) { Class c = obj.getClass(); ... 阅读全文
posted @ 2019-01-02 17:18 liw66 阅读(135) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { String word="天地玄黄宇宙洪荒" + "日月盈昃辰宿列张" + "寒来暑往秋收冬藏" + ... 阅读全文
posted @ 2019-01-02 16:46 liw66 阅读(2785) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { String t1="2018-08-01"; t1 = t1.replaceAll("(\\d{4})\\-(\\d{2})\\-\\d{2}", "$1-$2-01"); //String t2="2024-11-30"; ... 阅读全文
posted @ 2019-01-02 16:31 liw66 阅读(833) 评论(0) 推荐(0) 编辑