public enum Topics extends Enum<Topics>
| Enum Constant and Description |
|---|
Adventure |
Childrens |
History |
Romantic |
ScienceFiction |
Terror |
Thriller |
| Modifier and Type | Method and Description |
|---|---|
static Topics |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Topics[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Topics Adventure
public static final Topics ScienceFiction
public static final Topics History
public static final Topics Childrens
public static final Topics Thriller
public static final Topics Terror
public static final Topics Romantic
public static Topics[] values()
for (Topics c : Topics.values()) System.out.println(c);
public static Topics 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 © 2020. All rights reserved.