public class Port{ public static void main(String[] args) { Runtime runtime=Runtime.getRuntime();
try{
runtime.exec("cmd /c start ping www.baidu.com -t");
}
catch(Exception e){System.out.println("Error!");} }
}
2021-12-15 00:15:51
public class Port{ public static void main(String[] args) { Runtime runtime=Runtime.getRuntime();
try{
runtime.exec("cmd /c start ping www.baidu.com -t");
}
catch(Exception e){System.out.println("Error!");} }
}