handle ArrayIndexOutOfBoundsException in hello world