SyntaxFix
Write A Post
Hire A Developer
Questions
List is an interface. You need a specific class in the end so either try
List l = new ArrayList();
or
List l = new LinkedList();
Whichever suit your needs.