java program to find maximum element of an array using command line argument code example Example: how to find the largest integer in java int a = Integer.MAX_VALUE;