i am basically from C/C++ background. Sorry to ask very basic question. I have written a function like the following:

```
  public ArrayList<Integer> myArrayList()
    {

        ArrayList<Integer> arrList = new ArrayList<Integer>();
        Set<Integer> keys = myHashTable.keySet();
        for(Integer key: keys) {
            arrList.add(key);
        }

        return arrList;
    }

```

User can invoke `myArrayList()` Multiple times, and how do i have to address the user to deallocate the memory for `arrList` ?.