mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-05 14:28:31 +00:00
Merge pull request #1934 from hopesenddreams/patch-4
Formatted enum comments
This commit is contained in:
commit
a1b1383f48
@ -706,10 +706,12 @@ public abstract class Mammal()
|
|||||||
|
|
||||||
// Enum Type
|
// Enum Type
|
||||||
//
|
//
|
||||||
// An enum type is a special data type that enables for a variable to be a set of predefined constants. The // variable must be equal to one of the values that have been predefined for it.
|
// An enum type is a special data type that enables for a variable to be a set
|
||||||
// Because they are constants, the names of an enum type's fields are in uppercase letters.
|
// of predefined constants. The variable must be equal to one of the values that
|
||||||
// In the Java programming language, you define an enum type by using the enum keyword. For example, you would
|
// have been predefined for it. Because they are constants, the names of an enum
|
||||||
// specify a days-of-the-week enum type as:
|
// type's fields are in uppercase letters. In the Java programming language, you
|
||||||
|
// define an enum type by using the enum keyword. For example, you would specify
|
||||||
|
// a days-of-the-week enum type as:
|
||||||
|
|
||||||
public enum Day {
|
public enum Day {
|
||||||
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
|
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
|
||||||
|
Loading…
Reference in New Issue
Block a user