2016年10月21日
摘要: public class IPTest { public static void main(String[] args) { try{ // 获取计算机名 String name = InetAddress.getLocalHost().getHostName(); // 获取IP地址 ... 阅读全文
posted @ 2016-10-21 14:20 qinyahui 阅读(115) 评论(0) 推荐(0) 编辑
摘要: public class Utill { public String TimeString(Date currentTime, Date beginTime){ /*默认为毫秒,除以1000是为了转换成秒*/ long interval=(currentTime.getTime()-beginTime.getTime())/1000;//秒 ... 阅读全文
posted @ 2016-10-21 14:18 qinyahui 阅读(584) 评论(0) 推荐(0) 编辑