Catch ArrayIndexOutOfBoundsException

You have an array and you don’t care about the length of the array. This will result in an exception.

Output:

With the sniplet below you don’t need to worry about the array length.

and the ouptut

This entry was posted in General. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.