Java Program to find the largest element in an array.1 min read

Output: