int index = Integer.MAX_VALUE; // 2.14 Billion
try // This code might have a problem...
{
String toBuy = shoppingList[index];
}
catch (ArrayIndexOutOfBoundsException aioobx)
{
System.out.println("The index "+index+" is outside the array.");
}