public enum Month extends Enum<Month>
Enum Constant and Description |
---|
April
The April.
|
August
The August.
|
December
The December.
|
February
The February.
|
January
The January.
|
July
The July.
|
June
The June.
|
March
The March.
|
May
The May.
|
November
The November.
|
October
The October.
|
September
The September.
|
Modifier and Type | Method and Description |
---|---|
static Month |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Month[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Month[] values()
for (Month c : Month.values()) System.out.println(c);
public static Month 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 © 2012–2015 Microsoft. All rights reserved.