Press '4' to rotate left, '5' to accelerate, '6' to rotate right, '2' for hyperspace
You may need to "click" on the applet to give it the "focus"
ArrayListArrayList. To use an
ArrayList we need to import java.util.ArrayList. The
ArrayList class has a number of useful member methods:
- boolean add(Object x)
- void add(int index, Object element)
- Object get(int index)
- Object remove(int index)
- Object set(int index, Object x)
- int size()
- Iterator iterator()
ArrayList of Asteroids.
ArrayList
Math.abs) of both differences is less than 20 remove the asteroid from the ArrayList
You will need a web page to display your applet. Your homepage should have a link to the web page for this assignment.
Submit the URL of your applet with the attached Java code (the .java file(s)) in an email message
to mrsimon@lycos.com.