Write a program that takes input of names from user. Print total names number and all names.
NOTE: Solve this problem using ArrayList and Enhanced For Loop.
Typical run of the program:
Enter a name: (Q to exit)
Ali
Enter a name: (Q to exit)
Sarah
Enter a name: (Q to exit)
David
Enter a name: (Q to exit)
Ahmad
Enter a name: (Q to exit)
Jhon
Enter a name: (Q to exit)
q
You entered 5 names which are: