array list how to impement code example
Example 1: java create arraly list
List<String> words = new ArrayList<String>();
Example 2: how to create an array list in java
List<Integer> list = new ArrayList<>();
List<String> words = new ArrayList<String>();
List<Integer> list = new ArrayList<>();