News

Right-click the Java file you want to edit and select "Open With." Click your Java compiler to open the code in the editor. Add the "Random" class library to the top of the source code file.
Create an array for the images. The following code creates an array that holds two images:int myimage [] = new int (2); Generate a random number using the Java "random" class.