I would like to know how to completely destroy a ArrayList
and List
at run time.
example:
ArrayList<Elemento> e = new ArrayList();//Elemento e uma classe
for (int i = 0; i<10;i++)
{
e.add(new Elemento());
e.get(i).texto = "teste";
e.get(i).texto2 = "algo";
e.get(i).numero = i;
}
How to destroy e
completely or delete it?