Handle array index out of bound exception and give proper message if user enter day index outside range (0-6). code example
Example: java array out of bounds
//Use index inside the bounds of the array
//Use index inside the bounds of the array