public enum Career extends Enum<Career>
| Enum Constant and Description |
|---|
ANALYST |
ARTS |
MECHANICS |
MEDICINE |
TECHNOLOGY |
USELESS |
| Modifier and Type | Method and Description |
|---|---|
static Career |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Career[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Career TECHNOLOGY
public static final Career MEDICINE
public static final Career ARTS
public static final Career USELESS
public static final Career MECHANICS
public static final Career ANALYST
public static Career[] values()
for (Career c : Career.values()) System.out.println(c);
public static Career 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 JBoss by Red Hat. All rights reserved.