Possible solutions for this are -
If immutable list is required
If non-immutable list is required
Using Java Streams API
We can also use Java Streams API for this and in case we also want to transform and perform some operations on the elements then this will be a better approach to do things in a structured approach and also in minimal steps.
Example with the transformation to make all characters in uppercase.