Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0

In the parameters tab, add parameter

When you learn Java,Some details of the small problems tend to be very confusing,When in receive parameters, for example。

If your program needs to receive arguments in order to run,And you did not give the default parameters,That can cause this error:

For example, your code is:
[crayon-6153c[……]

Click link to continue reading...