0
Can anyone explain this why we use String a[] in public static void main (String a[])
2 ответов
+ 2
all the command line arguments are stored in that String array
+ 1
When you run the Java application from another program (Command Line) the input will go through String a[]
This gives the program an opportunity to use input from another program to complete a task