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