I would like to know how to add an if statement for the following error:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
at Calendar.main(Calendar.java:14)
In other words, I would like to display the following text when the following error is triggered, "Error. Please enter the missing elements."