public enum Continent extends Enum<Continent>
| Enum Constant and Description |
|---|
Africa |
Asia |
Europe |
NorthAndCentralAmericaAndCaribbean |
NotUsed0 |
NotUsed1 |
Oceana |
SouthAmerica |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static Continent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Continent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Continent NotUsed0
public static final Continent NotUsed1
public static final Continent Europe
public static final Continent NorthAndCentralAmericaAndCaribbean
public static final Continent Asia
public static final Continent Oceana
public static final Continent Africa
public static final Continent SouthAmerica
public static Continent[] values()
for (Continent c : Continent.values()) System.out.println(c);
public static Continent valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All rights reserved.