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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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