Java program to find the largest element in array Given an array of numbers, write a java program to find the largest element in the given array. Example: int[] a = {1, 5, 3, 9, 2, 8, 2} Largest Element: 9 Java 代码 public class LargestElementInArray {…