摘要:
public class IPTest { public static void main(String[] args) { try{ // 获取计算机名 String name = InetAddress.getLocalHost().getHostName(); // 获取IP地址 ... 阅读全文
posted @ 2016-10-21 14:20
qinyahui
阅读(119)
评论(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
阅读(596)
评论(0)
推荐(0)
浙公网安备 33010602011771号