Question: So i mostly program in C++, and java is very similar to c++.
I have created a list command as such

```
 List<Item> stuff =new ArrayList<Item>();

```

where Item is a custom class that basically stores data.
I get information from a text file and store it to Item. 
Then i use stuff.add to get the item class to stuff.
Afterwards i use a command to erase all data from the item class and see that it has also deleted all the data from the list.
Basically I want to know if there is a way to add a copy of the class and not the address of the class itself.

Edit:
so i found that reinitializing the item class also solved my problem thanks though.

Answer: 
Add the functionality of clearing the `hasfile` property in the LoadPage() function which ,suprise suprise, is called when you refresh (as the page loads).

Or maybe instead of placing the functionality, code a function that implements said functionality and call it from page load.
[Guide Code](http://www.velocityreviews.com/forums/t237593-cannot-delete-file-after-file-upload-asp-net-2-0-a.html):

```
private void clearFileUpload()
{
    fileUpload.Dispose();
}

```

OR 

try to deal with the issue immediately after uploading the file.

```
private void clearFileUpload()
{
    fileUpload.PostedFile.InputStream.Dispose();
    // fileUpload.HasFile is now  false
}

```
I do this to clear FileUpload:

```
fubanner.Attributes.Clear();

```