Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Determining what type of data the ArrayList will contain in java.

import java.util.List;
import java.util.ArrayList;

List<String> myStringList = new ArrayList<String>();
List<Integer> myIntegerList = new ArrayList<Integer>();
List<Boolean> myBooleanList = new ArrayList<Boolean>();

Source by moringaschool.instructure.com #
 
PREVIOUS NEXT
Tagged: #Determining #type #data #ArrayList
ADD COMMENT
Topic
Name
6+7 =