Tuesday, April 20, 2010

LinkedHashMap, dynamic int Array, and an ArrayList in Java

Needing to build some dynamic items today and threw together: LinkedHashMap, dynamic int Array, and an ArrayList in Java. Perhaps they might help. The first class is TestHashMap.java code:



Here is the TestHashMap.java output:



Here is the TestDynamicIntArray.java class code:



Here is the TestDynamicIntArray class output:



Finally, here is the TestArrayList.java class code:



And the TestArrayList output:



No comments: