#17 Committing String Homework

Otwarty
chitraBegerhotta chce scalić 2 commity/ów z chitraBegerhotta/ZCW-Lab-Fundamental-Methods:master do master
Nie ma jeszcze treści.
nhu313 skomentował 6 lat temu
Właściciel

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 otwiera ponownie 6 lat temu
Ten pull request może być automatycznie scalony.
Zaloguj się, aby dołączyć do tej rozmowy.
Brak etykiety
Brak kamienia milowego
Brak przypisania
2 uczestników
Ładowanie...
Anuluj
Zapisz
Nie ma jeszcze treści.