New course! Every coder should learn Generative AI!
Try a free lesson0
What's the use of (string [ ] args) {
1 Answer
+ 2
args[0] is for first parameter (not for path):
System.out.println(java.util.Arrays.toString( args ));
java Example 1 2 3
[1, 2, 3]