java arraylist class code example
Example 1: arraylist java methds
import java.util.ArrayList;
ArrayList myList = new ArrayList();
myList.add(0);
myList.remove(0);//Remove at index 0
myList.size();
myList.get(0);//Return element at index 0
Example 2: java arraylist
List expenseTypeList = new ArrayList<>();
expenseTypeList.add("GENERAL");
expenseTypeList.add("PURCHASE");
expenseTypeList.add("PROJECT");