import java.util.ArrayList; import javax.swing.JOptionPane; /** * This class contains a Main Method that allows this to compile * into a stand-alone application. * * @author Brad Richards */ public class BouldersProgram { /** * The main method is the starting point for our stand-alone executable. * It has to have exactly this "signature": It has to be static and * void, and take an array of Strings as input (even though we ignore * the array of strings here). */ public static void main(String[] args) { // Create some Boulder objects Boulder b1 = new Boulder(100, 200, 8, 8, 50); Boulder b2 = new Boulder(200, 100, 8, -8, 50); // Make a BouncingBoulders object so we can have it move // our Boulder objects BouncingBoulders bb = new BouncingBoulders(); // Move the Boulders. bb.moveBoulders(b1,b2); } }