subject

In main: Declare an array capable of holding five Strings.
Populate the array by entering five first names all on one one line separated by spaces (see sample output but use different names).
Use a foreach loop (see page 255) to process the array and display the names on one line separated by spaces.
Pass the array to a void method.
In the void method:

Sort the array.
Create an arraylist of Strings.
Use a loop to populate the arraylist with the Strings in the array that was passed it.
Insert another name (you choose it) at the start of the arraylist.
Remove the name at the end of the arraylist.
Use a foreach loop to process the arraylist and display the names on one one line separated by spaces.
Sample Output (user input in boldface)
Enter five first names
Penny Lenny Benny Denny Kenny
Sorted array of names
Benny Denny Kenny Lenny Penny
Final list of names
Maria Benny Denny Kenny Lenny

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:40
In a response of approximately 50 words, explain why it would be essential for the successful a/v technician to participate in additional coursework, presentations and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry.
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 12:00
Match the function to its purpose. fast worth 50pts.
Answers: 1
You know the right answer?
In main: Declare an array capable of holding five Strings.
Populate the array by entering fiv...
Questions
question
Mathematics, 18.01.2020 00:31
question
Geography, 18.01.2020 00:31
question
Mathematics, 18.01.2020 00:31
Questions on the website: 13722367