public enum Months extends Enum<Months>
Modifier and Type | Method and Description |
---|---|
static Months |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Months[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Months JAN
public static final Months FEB
public static final Months MAR
public static final Months APR
public static final Months MAY
public static final Months JUN
public static Months[] values()
for (Months c : Months.values()) System.out.println(c);
public static Months 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 © 2005-2014 QOS.ch. All Rights Reserved.