Check out example codes for "arraylist of double". It will help you in understanding the concepts better.

Code Example 1

import java.util.ArrayList;

	public void function(){
    	ArrayList<type> myList = new ArrayList<>();
   }

Learn ReactJs, React Native from akashmittal.com