Exercises with arrays in Java (with static methods)
I declare an array of integers and initialize it with natural numbers using an Initialize method. I declare a method that prints the array, a method that calculates the sum of two consecutive elements, and inserts the result into a second array
I declare an array of integers and initialize it with natural numbers using an Initialize method
a) I declare a method that prints the array
b) I declare a method that calculates the sum of two consecutive elements
c) and inserts the result into a second array