public class ExceptionExam{ public int get50thItem(int []array){ if(array.length < 50){ throw new IllegalArgumentException(); } return array[49]; } }