I want to throw exception manually. I tried the following but it fails.
throw java.lang.ArrayIndexOutOfBoundsException;
I get following exception:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
java.lang.ArrayIndexOutOfBoundsException cannot be resolved
Please advice.