Class Test
java.lang.Object
|
+--Test
- public class Test
- extends java.lang.Object
The Model's constructor needs
a number input to set the number of agents in the model.
The aModel object then is told to buildObjects, which means
it dumps agents into a list. Then it runs the "checkAgents"
method, which just goes through the list of agents.
Please note, In the checkAgents method, I show 2 ways of
traversing through a collection
Then lets see
what fun we can have with a collection. .
Constructor Summary |
Test()
|
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Test
public Test()
main
public static void main(java.lang.String[] args)