Sobes.tech
Intern — Middle

Finding the largest element in an array

livecode

Task condition

Implement the findMaximum function that returns the largest number from the given array of integers. Do not use Stream API, sorting, or external libraries — only use basic Java features.

private static int findMaximum(int[] arr) {
    //Implement logic to return the maximum element of an array
    return 0;
}