Просто синтаксис не поймете?
public static void main(String[] args) {
Solution2 myApp = new Solution2();
double[] numbers = new double[10];
RandomDouble sum = (arr) -> { double forSum = arr[0]; return forSum; };
RandomDouble min = (arr) -> { double forMin = arr[0]; return forMin; };
RandomDouble max = (arr) -> { double forMax = arr[0]; return forMax; };
System.out.println("Sum: " + myApp.operateBinary(numbers, sum));
System.out.println("Min: " + myApp.operateBinary(numbers, min));
System.out.println("Max: " + myApp.operateBinary(numbers, max));
}
}
Или не поймете алгоритм как найти сумму?:)