Question: Write a method String [ ] addName ( String [ ] names ) that can find out if a String array with 1 0 positions

Write a method String[] addName(String[] names) that can find out if a String array with 10 positions is full or has additional free positions. If the array is full the program should print a message to the user and terminate. If any free position is available the program should prompt the user to add a name to the array and assign the name entered to the next free position in the array. The program should repeatedly add the user to enter names until either the user says no or the array is full. If any names are added the program should print the new array with a message.

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!