public enum Continent extends Enum<Continent>
| Enum Constant and Description |
|---|
AFRICA
Africa
|
ANTARCTICA
Antarctica
|
ARCTICA
Arctica
|
ASIA
Asia
|
AUSTRALIA
Australia
|
EUROPE
Europe
|
NORTH_AMERICA
North America
|
SOUTH_AMERICA
South America
|
| Modifier and Type | Method and Description |
|---|---|
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 AFRICA
public static final Continent ANTARCTICA
public static final Continent ARCTICA
public static final Continent ASIA
public static final Continent AUSTRALIA
public static final Continent EUROPE
public static final Continent NORTH_AMERICA
public static final Continent SOUTH_AMERICA
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 © 2014. All rights reserved.