public class ArrayListGrid extends java.lang.Object
ArrayListGridclass encapsulates two public inner classes that extend the
Gridclass to model a two-dimensional grid by keeping track of their contents in
ArrayListobjects. The first public inner class,
ArrayListGrid.Bounded, represents a bounded grid using an
ArrayList, while the second public inner class,
ArrayListGrid.Unbounded, represents an unbounded grid using an
Methods of both
ArrayListGrid classes have the
following time and space characteristics:
nis the number of objects in the grid.
ArrayListGrid classes are based on the
UnboundedEnv class, as allowed
by the GNU General Public License.
|Modifier and Type||Class and Description|
Internal representation for an