diff --git a/pages/common/java.md b/pages/common/java.md index 5222ddf67..af90e8fe4 100644 --- a/pages/common/java.md +++ b/pages/common/java.md @@ -4,7 +4,11 @@ - Execute a java .class file that contains a main method by using just the class name: -`java {{filename}}` +`java {{classname}}` + +- Custom input and output files. Preferably .txt files. This is useful when you don’t want to input from keyboard every time you run your class. Outputs from `System.out.println();` are saved in the output file: + +`java {{classname}} <{{path/to/inputfile}}> {{path/to/outputfile}}` - Execute a .jar program: @@ -13,7 +17,3 @@ - Display JDK, JRE and HotSpot versions: `java -version` - -- Custom input and output files. Preferably .txt files: - -`java {{classname}} <{{path/to/inputfile}}> {{path/to/outputfile}}`