Update UIClass.java

Modified the deletion method so that the user inputs an index instead of the full name of the object.
Also added A prompt to allow the user to go back to the main screen or exit the program.
Merge pull request #1 from eak2751/patch-1

Update UIClass.java