mirror of https://github.com/CrimsonTome/tldr.git
I just hope isn't too much
parent
861cf7673b
commit
290b6268a6
|
@ -4,7 +4,11 @@
|
||||||
|
|
||||||
- Execute a java .class file that contains a main method by using just the class name:
|
- 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:
|
- Execute a .jar program:
|
||||||
|
|
||||||
|
@ -13,7 +17,3 @@
|
||||||
- Display JDK, JRE and HotSpot versions:
|
- Display JDK, JRE and HotSpot versions:
|
||||||
|
|
||||||
`java -version`
|
`java -version`
|
||||||
|
|
||||||
- Custom input and output files. Preferably .txt files:
|
|
||||||
|
|
||||||
`java {{classname}} <{{path/to/inputfile}}> {{path/to/outputfile}}`
|
|
||||||
|
|
Loading…
Reference in New Issue