import java.util.Random; public class MaximumOf2_a { public static void main (String[] args) { Random random = new Random (); int first = random.nextInt (); int second = random.nextInt (); System.out.println ("Random numbers generator were " + first + " and " + second + ". The maximum of these two number is " + Math.max (first, second)); } }