#17 Committing String Homework

Atvērta
chitraBegerhotta vēlas sapludināt 2 revīzijas no chitraBegerhotta/ZCW-Lab-Fundamental-Methods:master uz master
Vēl nav satura.
nhu313 komentēja 6 gadus atpakaļ
Īpašnieks

You don't have to store the result in a variable then return it. You can return the result in one line.

    public Float add(float baseValue, float difference) {
        return baseValue + difference;
    }

For the predicate class, the comparison returns a boolean, so you don't need the if clause.

    public Boolean isLessThan(int x, int y) {
        return x < y;
    }

Your middleCharacter test should not pass all test. Please fix it and send me a message when you're done.

You don't have to store the result in a variable then return it. You can return the result in one line. ``` public Float add(float baseValue, float difference) { return baseValue + difference; } ``` For the predicate class, the comparison returns a boolean, so you don't need the if clause. ``` public Boolean isLessThan(int x, int y) { return x < y; } ``` Your middleCharacter test should not pass all test. Please fix it and send me a message when you're done.
nhu313 atvērts atkārtoti 6 gadus atpakaļ
Šo izmaiņu pieprasījumu var automātiski sapludināt.
Pierakstieties, lai pievienotos šai sarunai.
Nav etiķešu
Nav atskaites punktu
Nav atbildīgā
2 dalībnieki
Notiek ielāde...
Atcelt
Saglabāt
Vēl nav satura.