Enum Constant and Description |
---|
p1
First problem
|
p2
Second problem
|
p3
Third problem
|
p4
Fourth problem
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getNum(Problem probChoice)
Returns the current problem as a number
|
static Problem |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Problem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Problem p1
public static final Problem p2
public static final Problem p3
public static final Problem p4
public static java.lang.String getNum(Problem probChoice)
public static Problem valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Problem[] values()
for (Problem c : Problem.values()) System.out.println(c);