I always learn when we declare a collection we should do, Interface ob = new Class(), if i want to use for example a LinkedList i\'ll do List ob = new LinkedL
Interface ob = new Class()
List ob = new LinkedL
LinkedList is a generic. You should be doing:
LinkedList linkedList = new LinkedList();
(or whatever else you need to store in there instead of String)