arraylist of strings code example
Example 1: java how to create arraylist
import java.util.ArrayList;
//create ArrayList
ArrayList arrayList = new ArrayList();
Example 2: java arraylist
List expenseTypeList = new ArrayList<>();
expenseTypeList.add("GENERAL");
expenseTypeList.add("PURCHASE");
expenseTypeList.add("PROJECT");
Example 3: arraylist in java
Size is dynamic
Only supports objects
not syncronized
array based class