Error
  • JLIB_APPLICATION_ERROR_COMPONENT_NOT_LOADING

Say i have a ArrayList, which contain custom object.

 

I need to remove all elements of the list. I can use following two :-

    

     arrayList.clear();

 

     arrayList = new ArrayList<some type>();

 

 

I need to know which one is efficient ?

 

thank you

FacebookTwitterLinkedin
Pin It
Joomla Tutorials for Beginners