Why would I instantiate an ArrayList
referring to the interface List
like this:
List<T> mylist = new ArrayList<T>();
Instead of simply:
ArrayList<T> mylist = new ArrayList<T>();
Why would I instantiate an ArrayList
referring to the interface List
like this:
List<T> mylist = new ArrayList<T>();
Instead of simply:
ArrayList<T> mylist = new ArrayList<T>();