[Solved] Java Array use: Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 2 in array of String [duplicate]



Java Array use: Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 2 in array of String [duplicate]

solved Java Array use: Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 2 in array of String [duplicate]