NOTE: This constructor is different from the constructor in the balloon class. That constructor had 4 parameters specifying the height, position, and color of the balloon. In this case the constructor should have no parameters - initial values of the instance data are generated randomly rather than being passed in by the client program.
IMPORTANT: Your random number generator must be declared at the class level (not inside the constructor), and must be declared static. So its declaration and initialization should appear with the declarations of height, width, color, x, and y, and should look like this:
private static Random generator = new Random();
When your RandomHat class compiles, write an applet DrawHats that uses your RandomHat class to create and draw 5 hats. Of course, you also need an html file so you can run the applet. In the html file make the applet width 600 and height 400.
Be sure your program is appropriately documented.