How do I set an empty list of a certain type May 19, 2023 by Tarik Try this Collections.<String> emptyList(); See this also Type-safe, generic, empty Collections with static generics