Java tutorial
//package com.java2s; import java.util.HashSet; import java.util.Set; public class Main { public static final String DOOR1_NAME = "DCap-patrickxenvm02@dcap-patrickxenvm02Domain"; public static final String DOOR2_NAME = "DCap-gsi-patrickxenvm02@gsidcap-patrickxenvm02Domain"; public static final String DOOR3_NAME = "GFTP-patrickxenvm02@gridftp-patrickxenvm02Domain"; public static Set<String> getExpectedDoorNames() { Set<String> expectedDoors = new HashSet<>(); expectedDoors.add(DOOR1_NAME); expectedDoors.add(DOOR2_NAME); expectedDoors.add(DOOR3_NAME); return expectedDoors; } }