2.2. Using Factory Methods Since Java 9, we can usefactory methodsto initialize anArrayListwith items. For example,List.of()is a method that creates an immutable List with specified items. It is often used to create and initialize a List in one line. We can use it withArrayListconstructor ...