随笔分类 -  Java基础

摘要:Date类型转换成String: Date date = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String dBegin = sdf.format(date); String类型转换成Date: 阅读全文
posted @ 2017-11-10 14:53 许佳挺 阅读(822) 评论(0) 推荐(0) 编辑
摘要:1.首先新建1个JSONUtils类 public class JSONUtils { /** * * @author wangwei JSON工具类 * @param * */ /*** * 将List对象序列化为JSON文本 */ public static <T> String toJSONS 阅读全文
posted @ 2017-02-18 14:26 许佳挺 阅读(29954) 评论(0) 推荐(0) 编辑
摘要:SimpleDateFormat ormater = new SimpleDateFormat("yyyy-MM-dd"); Date date=new Date(); String d = String.valueOf(ormater.format(date)); 阅读全文
posted @ 2017-02-15 09:07 许佳挺 阅读(1066) 评论(0) 推荐(0) 编辑
摘要:1.找到8005端口的进程号 netstat -ano |findstr 8005 2.找到该进程占用的文件名 tasklist|findstr 13304 3.强制、递归 删除本程序及其子进程 taskkill -f -t -im javaw.exe 阅读全文
posted @ 2017-02-07 10:47 许佳挺 阅读(290) 评论(0) 推荐(0) 编辑
摘要:int intA = 10; String StrB = "12"; int c = Integer.parseInt(StrB); // 把String转换成int String d = String.valueOf(intA); // 把int转换成String 阅读全文
posted @ 2017-01-18 09:46 许佳挺 阅读(392) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示