I\'m using the runtime to run command prompt commands from my Java program. However, I\'m not aware of how I can get the output the command returns.
Here is my code:
Process p = Runtime.getRuntime().exec("ping google.com"); p.getInputStream().transferTo(System.out); p.getErrorStream().transferTo(System.out);