Update LinkedList.java

Return List object function