Skip to content

Commit b0c4575

Browse files
committed
fix java codeblock in enums
1 parent 9f7d36d commit b0c4575

File tree

1 file changed

+1
-1
lines changed
  • app/pages/learn/01_tutorial/03_getting-to-know-the-language/04_classes_objects

1 file changed

+1
-1
lines changed

app/pages/learn/01_tutorial/03_getting-to-know-the-language/04_classes_objects/01_enums.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ System.out.println(DayOfWeek.MONDAY.ordinal());//0 because MONDAY is the first c
113113

114114
Aside from instance methods, there are also static methods added to all enums.
115115
The method `values()` returns an array containing all instances of the enum and the method `valueOf(String)` can be used to get a specific instance by its name.
116-
```
116+
```java
117117
DayOfWeek[] days = DayOfWeek.values();//all days of the week
118118
DayOfWeek monday = DayOfWeek.valueOf("MONDAY");
119119
```

0 commit comments

Comments
 (0)