From 7081ddefcf5f9d97d90907aa1ca2d6b9d19e9c62 Mon Sep 17 00:00:00 2001 From: Anvith433 Date: Sat, 22 Aug 2026 04:25:33 +0100 Subject: [PATCH] docs: expand command line arguments chapter and add project --- src/command_line_arguments.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/command_line_arguments.md b/src/command_line_arguments.md index 1294568..87440e6 100644 --- a/src/command_line_arguments.md +++ b/src/command_line_arguments.md @@ -2,17 +2,9 @@ -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. \ No newline at end of file +```bash +java src/Main.java \ No newline at end of file