I don\'t know what mistake I am making here in the code which gives the java.lang.ArrayIndexOutOfBoundsException error.
Here is my code snippet:
privat