> 
> **Possible Duplicate:**  
> 
> [list.clear() vs list = new ArrayList<int>();](https://stackoverflow.com/questions/6961356/list-clear-vs-list-new-arraylistint) 
> 
> 
> 

I have a list:

```
List<Integer> l1  = new ArrayList<Integer>();

```

and added some integer variables on that list. After some operation, I need to reuse that list, so I set it to `null`.

Which is better, setting to `null` or using `.clear()`? Or is there another way?