- Work with arrays
Create an input loop that asks the user to enter the names of 10 students that
will be added to a String
array. Once all 10 student names have been added
(one by one), go through the array to display each student's name in
alphabetical order.
Your output should look similar to this:
Enter student's name:
James
Enter student's name:
Valerie
Enter student's name:
Alex
Enter student's name:
Joan
Enter student's name:
Rebecca
Enter student's name:
Denzel
Enter student's name:
Sarav
Enter student's name:
Sandra
Enter student's name:
Ahmed
Enter student's name:
Soraya
You have entered the following names:
Ahmed
Alex
Denzel
James
Joan
Rebecca
Sandra
Sarav
Soraya
Valerie