Java tutorial
import java.util.Collections; public class MainClass { public static void main(String[] a) { System.out.println(Collections.singletonList("a")); System.out.println(Collections.singleton("a")); System.out.println(Collections.singletonMap("a", "b")); } }