how to add list to a singletonList java code example Example: create a singleton list in java List<String> list = Collections.singletonList("E");