diff options
author | Raphael Nascimento <raphaelbn10@gmail.com> | 2015-10-15 15:59:22 -0300 |
---|---|---|
committer | Raphael Nascimento <raphaelbn10@gmail.com> | 2015-10-15 15:59:22 -0300 |
commit | 5a8a68988b7c153cf16f37c307954d7070fc9b81 (patch) | |
tree | 2cc656986a00d444313c334bad3956778afed9ae /java.html.markdown | |
parent | 50a0bbf33f19ea33c38f4b025c771e57bdfe937b (diff) |
[java/en] Enum Type
Outputs in line.
Diffstat (limited to 'java.html.markdown')
-rw-r--r-- | java.html.markdown | 8 |
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 |