determining what type of data the arraylist will contain in java

Solutions on MaxInterview for determining what type of data the arraylist will contain in java by the best coders in the world

showing results for - "determining what type of data the arraylist will contain in java "
Jorge
05 Aug 2016
1import java.util.List;
2import java.util.ArrayList;
3
4List<String> myStringList = new ArrayList<String>();
5List<Integer> myIntegerList = new ArrayList<Integer>();
6List<Boolean> myBooleanList = new ArrayList<Boolean>();
7
8
similar questions