Java Array Assignment
Task 1: Array Initialization and Access
1. Create an array of 5 integers with the values {10, 20, 30, 40, 50}.
2. Print the value of the third element in the array.
3. Modify the value of the second element to 25, and then print the entire array.
Task 2: Array Manipulation (Without Adding)
Write a program that:
1. Initializes an array of 6 integers: {5, 3, 7, 1, 9, 2}.
2. Find and print the maximum value in the array.
3. Find and print the minimum value in the array.
4. Print the sum of all elements in the array.
Task 3: Array Reversal (Bonus)
1. Create an array of 4 strings: {"Java", "Python", "C++", "JavaScript"}.
2. Write code to reverse the array and print the elements in reverse order.