Skip to main content
fixed typos
Source Link
Michael Mior
  • 28.9k
  • 10
  • 95
  • 118

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; 

The enum type Faction is nested within the top level class FactionNames.

public class FactionNames { public enum Faction {AMITY, ABNIGATION, DAUNTLESS, EURIDITE, 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;; 

The enum type Faction is nested within the top level class FactionNames.

public class FactionNames { public enum Faction {AMITY, ABNEGATION, DAUNTLESS, ERUDITE, 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; 
Source Link
Sotirios Delimanolis
  • 281k
  • 62
  • 718
  • 744

The enum type Faction is nested within the top level class FactionNames.

public class FactionNames { public enum Faction {AMITY, ABNIGATION, DAUNTLESS, EURIDITE, 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;;