摘要:
1 ** 2 * 能否ping通IP地址 3 * @param server IP地址 4 * @param timeout 超时时长 5 * @return true能ping通 6 */ 7 public static boolean pingServer(String server, int timeout) { 8 BufferedReader in = null; 9 Runtime r = Runtime.getRuntime();10 11 String pingComma... 阅读全文