public class Conditional {
    /*
    Aufgabe:
        Ändern Sie in folgenden Methoden die mit 'TODO:' gekennzeichneten Ausdrücke,
        sodass die Ergebnisse den Kommentaren entsprechen.
        Lassen Sie alle anderen Programmteile unverändert.

    Punkte (maximal 25):
        5 Punkte für jede vollständig korrekte Methode,
        0 Punkte für jede nicht vollständig korrekte Methode
    */

    // returns x if x is larger than 242232, returns 1222 otherwise
    public static int alice(int x) {
        if (true /*TODO: Ausdruck ändern*/) {
            return 0 /*TODO: Ausdruck ändern*/;
        }
        return 0 /*TODO: Ausdruck ändern*/;
    }

    // returns "hello" if x is 6, returns "wrong input" otherwise
    public static String foo(int x) {
        switch(x){
            case -1/*TODO: Ausdruck ändern*/:
                return "" /*TODO: Ausdruck ändern*/;
        }
        return "" /*TODO: Ausdruck ändern*/;
    }

    //  returns "hello " concatenated times times.
    public static String bar(int times) {
        String ret = "hello ";
        /* TODO: Wenn notwendig Code hinzufügen */
        ret += bar(0 /*TODO: Ausdruck ändern*/);
        return ret;
    }

    // returns true if x is equal to 24 (with epsilon 0.1)
    public static boolean alice(double x) {
        if (true /*TODO: Ausdruck ändern*/) {
            return true;
        }
        return false;
    }

    // returns -1 if x is larger than 10
    // returns 1 if y is smaller than 0
    // returns 2 if x is equal to 5
    // returns 3 otherwise
    public static int alice(int x, int y) {
        if (true /*TODO: Ausdruck ändern*/) {
            return 0 /*TODO: Ausdruck ändern*/;
        }
        return 0 /*TODO: Ausdruck ändern*/;
    }
}
