forked from exercism/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Classes as a whole removed, not just method/constructor stubs - Commenting out tests undone per discussion, exercism#683 - Enum 'Plant' re-added to Kindergarten Garden per discussion - .keep added to empty source folders
- Loading branch information
Showing
6 changed files
with
141 additions
and
126 deletions.
There are no files selected for viewing
Empty file.
3 changes: 0 additions & 3 deletions
3
exercises/collatz-conjecture/src/main/java/CollatzCalculator.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
exercises/kindergarten-garden/src/main/java/KindergartenGarden.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
public enum Plant { | ||
VIOLETS, | ||
RADISHES, | ||
CLOVER, | ||
GRASS; | ||
|
||
public static Plant getPlant(char plantCode) { | ||
switch (plantCode) { | ||
case 'G': | ||
return GRASS; | ||
case 'C': | ||
return CLOVER; | ||
case 'R': | ||
return RADISHES; | ||
case 'V': | ||
return VIOLETS; | ||
} | ||
|
||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters