Creating an Object/Class Instance

DO NOT NEED TO TURN IN

Understand and implement the following code from the book and run it. Be able to point out where objects are being created and from what class.



import java.util.Random;



class RandomNumbers {



    public static void main(String arguments[]) {

        Random r1, r2;



        r1 = new Random();

        System.out.println("Random value 1: " + r1.nextDouble());



        r2 = new Random(8675309);

        System.out.println("Random value 2: " + r2.nextDouble());

    }

}