Programming Example
Example 2: String Array: Write a Java program to update array elements at three different positions: start, middle, and end. Provide 3 different examples using user input for string arrays.
Study this program carefully to understand the logic, output, and explanation in a structured way.