Similar Posts

Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
arcamu
1 year ago

If your class is called `main` method `Main.class`, then write the following in the console (in the folder with the `Main.class` file):

$ java Main thisIsAnArgument

In the GUI of VS code it is possible to official docu do. At the bottom you also see `args` in the Configuration Options.