The enum type Faction is nested within the top level class FactionNames.
public class FactionNames { public enum Faction {AMITY, ABNIGATIONABNEGATION, DAUNTLESS, EURIDITEERUDITE, CANDOR}; } If you want to use its simple name, you'll need to import it
import com.example.FactionNames.Faction; Alternatively, you can use its qualified name
FactionNames.Faction test = FactionNames.Faction.DAUNTLESS;;DAUNTLESS;