摘要:
String hex = "EC78";Short val = (short)Integer.parseInt(hex,16); 阅读全文
摘要:
查看某个IP是否可达 InetAddress address1 = InetAddress.getByName("192.168.1.158"); if (address1.isReachable(1000)) { System.out.println("reachable"); } 也可以获取网卡 阅读全文