SyntaxFix
Write A Post
Hire A Developer
Questions
List is an interface. Interfaces cannot be instantiated. Only concrete types can be instantiated. You probably want to use an ArrayList, which is an implementation of the List interface.
List
ArrayList
List<Product> products = new ArrayList<Product>();