Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java types of list

There are four types of lists in Java
i.e. Stack, LinkedList, ArrayList, and Vector.
  
Hence, when you have to implement list Interface, 
you can implement any of the above list type class depending on the requirements. 
To include the functionality of the list interface in your program, 
you will have to import the package java.util.
* that contain list interface and other classes definitions as follows:

import java.util.*;
   
 
PREVIOUS NEXT
Tagged: #java #types #list
ADD COMMENT
Topic
Name
1+9 =