Question: Create a program in java with an array of strings of size 10, fill each element of the array with the word something and prompt

Create a program in java with an array of strings of size 10, fill each element of the array with the word something and prompt the user which array element they want to remove, the program will replace that element with the word "nothing" and shift each element down with nothing at the end of the array:

sample output

here is your array:

1 something

2 something

3 something

4 something

5 something

6 something

7 something

8 something

9 something

10 something

which element would you like to clear?

user inputs 3

here is your new array!

1 something

2 something

3 something

4 something

5 something

6 something

7 something

8 something

9 something

10 nothing

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!