command-line
3 tutorials tagged “command-line”.
- Command Line ArgumentsPass values to a program when you start it: how the command line becomes args, quoting values with spaces, converting and checking them.
- Compiling and Running from the Command LineUse javac and java from a terminal: compile one or many files, keep .class files apart with -d, run them with -cp, and read launcher errors.
- Running a Single Source File DirectlyRun a .java file in one step with java File.java, use other source files in the same folder (Java 22+), and turn a Java file into a script on macOS and Linux.