A simple Java program that returns an array minus the index the user has selected via the console