This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Arrays; | |
| /** | |
| * implementation of a generic dynamic array or Arraylist, with all utility methods. | |
| * @param <T> generic class | |
| */ | |
| public class ArrayList<T> { | |
| //default initial capacity / minimum capacity | |
| private static final int DEFAULT_CAPACITY = 2; |