summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--java.html.markdown8
1 files changed, 2 insertions, 6 deletions
diff --git a/java.html.markdown b/java.html.markdown
index bc119eb1..8544ecfc 100644
--- a/java.html.markdown
+++ b/java.html.markdown
@@ -719,16 +719,12 @@ public class EnumTest {
public static void main(String[] args) {
EnumTest firstDay = new EnumTest(Day.MONDAY);
- firstDay.tellItLikeItIs();
+ firstDay.tellItLikeItIs(); // => Mondays are bad.
EnumTest thirdDay = new EnumTest(Day.WEDNESDAY);
- thirdDay.tellItLikeItIs();
+ thirdDay.tellItLikeItIs(); // => Midweek days are so-so.
}
}
-// The output is:
-// Mondays are bad.
-// Midweek days are so-so.
-
// Enum types are much more powerful than we show above.
// The enum body can include methods and other fields.
// You can se more at https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html