Java List and ArrayList
is there any difference between these two ways?
List wordlist = new ArrayList <> ();
ArrayList wordlist = new ArrayList ();
List is abstract, so you can change it's 'type'.
ArrayList is not, but it will allow you more speed if you know all your types are going to be the same.
I have always used
ArrayList, and have never found any need for