I am trying to find a way to handle an ArrayIndexOutOfBoundsException.
this will give an exception. Is there a way (maybe try-catch) to set the variable to the previous code to 0 i.e every time an index is out of bound to set it to 0?Code:
int  plegma = new int;
int x = plegma);
Thank you for your help.