public enum Topic extends Enum<Topic>
| Enum Constant and Description |
|---|
ADVENTURE |
CHILDREN |
FICTION |
HISTORY |
HORROR |
ROMANCE |
SCIENCE |
SUSPENSE |
| Modifier and Type | Method and Description |
|---|---|
static Topic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Topic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Topic ADVENTURE
public static final Topic SCIENCE
public static final Topic FICTION
public static final Topic HISTORY
public static final Topic CHILDREN
public static final Topic ROMANCE
public static final Topic SUSPENSE
public static final Topic HORROR
public static Topic[] values()
for (Topic c : Topic.values()) System.out.println(c);
public static Topic 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 © 2023. All rights reserved.