receives a linked list as parameter and return another list containing in java code example
Example: how to declare a linked list in java
LinkedList<String> list=new LinkedList<String>();
LinkedList<String> list=new LinkedList<String>();