What are 2 ways of creating an Array, list them and give an example.
Example: java how to create arraylist
import java.util.ArrayList;
//create ArrayList
ArrayList<String> arrayList = new ArrayList<String>();
import java.util.ArrayList;
//create ArrayList
ArrayList<String> arrayList = new ArrayList<String>();