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