Tag Archives: ArrayList vs. LinkedList vs. Vector

Day 17 – Collections – Lists, Sets (Ratna Patel)

ArrayList overview :  • Constant time positional access (it’s an array) • One tuning parameter, the initial capacity public ArrayList(int initialCapacity) { super(); if (initialCapacity < 0) throw new IllegalArgumentException( “Illegal Capacity: “+initialCapacity); this.elementData (more…)