Tag Archives: big o

The Big O

You may have seen someone write this: List accounts = new ArrayList(); Why didn’t they just write ArrayList accounts = new ArrayList(); Well, remember that List is the interface and ArrayList and LinkedList are implementations. That means it is OK to point at the implementations through the interface type – which is where we started [...]

Posted in Java | Also tagged , | Leave a comment