import java.util.*; public class Ball extends PhysicsElement implements Attachable, Simulateable{ private ArrayList con=null; // to be coded by you }