Java List get element
import java.util.ArrayList; import java.util.List; public class Main { public static void main(String args[]) throws Exception { List<String> list = new ArrayList<>(); list.add("CSS"); list.add("HTML"); list.add("C++"); System.out.println(list.get(2)); }//w w w . j a va2 s . c om }