I need to write an entire class with a main method that (using the 'next' and 'hasNext' functions)
1 - creates a collection of names called 'theNames' (type string)
2- prompts for and reads from the screen five values for 'theNames' and adds them into the collection without indexing. It may require an appropriate value to teminate the data entry.
3 - Prints the values back out without indexing