![](https://www.logcg.com/wp-content/uploads/2015/07/-2015-07-26-下午6.19.27-e1437906625362.png)
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:
1 |
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 |
For example, your code is:
[crayon-66dd0[……]