通过参数 ip 判断网络是否连接通常,public static boolean getPing(String ip){ // 方法一 最常用的 PING 方法 Runtime runtime = Runtime.getRuntime(); // 获取当前程序的运行进对象 Process process = null; // 声明处理类对象
评论星级较低,若资源使用遇到问题可联系上传者,3个工作日内问题未解决可申请退款~