Not getting the output

Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3.
I am getting this error.

@LohitDevgan paste the code in coding blocks ide and sent it here buddy so that I can have a look at it!