java learning day19 - List collection

List collection

    He said today Collection set of a subclass : List collection

 

    Some operations are basically the same, interested students Collection List collection and a collection of his father can go and see my last blog

    

 

 

    The difference is that the Collection, List collection added an index value of operations, the value of the index is from zero , the (content index value added) variable name .add

    

    

 

    List of several implementations like ArrayList, LinkedList and Vector

    The three implementation class only Vector is thread-safe of

    ArrayList is mainly used to query

    LinkedList is mainly used to operate the new and delete

    LinkedList can mimic the stack (last out): variable name .push (), the variable name .pop ()

         Can simulate Queue (FIFO): variable name .offer (), the variable name .poll ()

    

    

    Focus here is the difference between ArrayList and LinkedList

    See: https: //www.cnblogs.com/javaisbest/p/11795444.html

    

 

    

 

    

Guess you like

Origin www.cnblogs.com/javaisbest/p/11795382.html