摘要: String hex = "EC78";Short val = (short)Integer.parseInt(hex,16); 阅读全文
posted @ 2022-08-25 16:56 蜜铀 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 查看某个IP是否可达 InetAddress address1 = InetAddress.getByName("192.168.1.158"); if (address1.isReachable(1000)) { System.out.println("reachable"); } 也可以获取网卡 阅读全文
posted @ 2022-08-25 11:25 蜜铀 阅读(178) 评论(0) 推荐(0) 编辑