You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/pages/learn/01_tutorial/03_getting-to-know-the-language/04_classes_objects/01_enums.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ System.out.println(DayOfWeek.MONDAY.ordinal());//0 because MONDAY is the first c
113
113
114
114
Aside from instance methods, there are also static methods added to all enums.
115
115
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
117
117
DayOfWeek[] days =DayOfWeek.values();//all days of the week
0 commit comments