Sha256: 4951b4e5701833b9e6d35032fa93b7520942163cab1130ebef5fb6a51752f9af

Contents?: true

Size: 404 Bytes

Versions: 240

Compression:

Stored size: 404 Bytes

Contents

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;
    }
}

Version data entries

240 entries across 120 versions & 1 rubygems

Version Path
trackler-2.2.1.71 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.71 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java
trackler-2.2.1.70 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java
trackler-2.2.1.70 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.69 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java
trackler-2.2.1.69 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.68 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java
trackler-2.2.1.68 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.67 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.67 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java
trackler-2.2.1.66 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.66 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java
trackler-2.2.1.65 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.65 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java
trackler-2.2.1.64 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.64 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java
trackler-2.2.1.63 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.63 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java
trackler-2.2.1.62 tracks/java/exercises/kindergarten-garden/.meta/src/reference/java/Plant.java
trackler-2.2.1.62 tracks/java/exercises/kindergarten-garden/src/main/java/Plant.java