java code to check if element is largest number in an array code example Example: how to find the largest integer in java int a = Integer.MAX_VALUE;