import com.google.common.collect.Lists; ListIn this example, the Lists class is imported from the com.google.common.collect package, and we use the newArrayList method to create a new List instance of type String with the specified elements. This method is especially useful when we need to create a new List with a small number of elements, as it allows us to avoid the more verbose syntax of manually adding elements to an ArrayList one by one. It's also worth noting that if we want to create a List with a large number of elements, we may be better off using a different class from the com.google.common.collect package, such as ImmutableList, which provides better performance for large collections. In summary, the com.google.common.collect package library provides powerful and flexible data structures and utilities for Java developers, and the Lists.newArrayList method is just one example of the many tools that this package has to offer.
fruitList = Lists.newArrayList("apple", "orange", "banana");