Question: Exercise Declare a String array of 10 elements. Initialize this array with some names and perform the following tasks: Print all array elements Display size

Exercise

Declare a String array of 10 elements. Initialize this array with some names and perform the following tasks:

  • Print all array elements
  • Display size of array
  • Sort Array elements. Hint: Arrays.sort(arrayName);
  • Print the following indexes: 1,3,5,7,9
  • Search particular name in the array
  • Delete array element
  • Insert array element

Source Code:

Knowledge Check:

Can we insert element at index 11? Support your answer with logical reasons.

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!