Your task is to implement the given methods in the ArrayOperations
class.
You will develop a class that can perform various array operations with integer arrays.
For this assignment, unit tests are provided. Please stick to the provided public
methods, those are getting tested. You can add as many private
helper methods as you like. It is intended to do so.
Do not make your methods static.
NOTE: Do not repeat yourself. Introduce private methods for repeated tasks.
Syntax of the foreach loop
int[] numbers = {1,2,3,4};
// do something with every element of the array
for (int i : numbers) {
System.out.print(i + " ");
}