Removes all the elements from the list
LinkedList<int> list = {3, 4, 5}; list.clear(); //list now contains no elements