Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions src/command_line_arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,9 @@

<img src="/command_line_arguments/header.png" height="200px"/>

When you run a program like so
When you run a Java program from a terminal, you often want to pass configuration values, file paths, or modes of operation without prompting the user while the program is running.

```
java src/Main.java
```
You run a Java file like so:

Anything you put to the right of `src/Main.java` will be available to your program as a
"command line argument."[^name]

```
java src/Main.java example
```

[^name]: They come from the command line and they are arguments to your program.
```bash
java src/Main.java