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
Get step-by-step solutions from verified subject matter experts
