Question: 9.1b Requirements Write a console application that accepts any number of String values from a user up to 15. You can use either an Array

 9.1b Requirements Write a console application that accepts any number of

9.1b Requirements Write a console application that accepts any number of String values from a user up to 15. You can use either an Array or an Arraylist. 1. You can use a built-in sort method to sort the array in ascending order. 2. Keep track of how many entries the user makes. You will need that when displaying the array. 3. Create and use a single display method to display the array before sorting and after sorting. The book has examples of passing an array to a method. 4. The array can be printed all in a row, or one string per row. The example below uses both methods. 5. Save the file as String Sort2.java. Example run: ----GRASP exec: java StringSort2 Enter a word or zzz to quit fred Enter a word or zzz to quit apple Enter a word or zzz to quit dessert Enter a word or zzz to quit ZZZ Values: fred apple dessert apple dessert fred

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!