+ 7
Printing out Command line?
Hey, just wondering if theres away to print command line in java code playground? Thanks
1 Réponse
+ 4
Yes you can!
e.g.
java -jar map.jar time.rel test.txt debug
You can run it with command but You couldn't do it within Java.
You Can Use This code within java ::::::::::::::::::::::::::::::::::
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("java -jar map.jar time.rel test.txt debug");
http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html