I am a beginner in programming. (Learning Java) Write down what you wondered about command line arguments and your own understanding of the question.
It seems that the file information is set most often in the command line arguments. (Letters and numbers are OK) You can get the information of the contents of the folder by specifying the path of the folder containing the necessary data when setting. It's convenient because it will bring the file information without you having to write the code one by one. I felt that.
↓ Here ↓ The first call from the java virtual machine (VM) seems to be "public static void main (String [] args)" and is received as a String type array. By the way, it seems that the variable name does not have to be "args".
main method Since it is called first in the program, you cannot pass arguments in the method as shown in the image below. That's why you need to pass the information as a command line argument.
I think that the content is poor like a beginner, but I hope it helps someone. Please comment if there are any inadequacies in the content. Thank you for reading.
** [Reference source below] **
Recommended Posts