how to create an arraylist of strings java code example Example: how to create an array list in java List<Integer> list = new ArrayList<>();