Programming Example
Example 1: Integer 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 integer arrays.
Study this program carefully to understand the logic, output, and explanation in a structured way.