#17 Committing String Homework

Открыто
chitraBegerhotta хочет смерджить 2 коммит(ов) из chitraBegerhotta/ZCW-Lab-Fundamental-Methods:master в master
chitraBegerhotta прокомментировал 8 лет назад
Пока нет содержимого.
nhu313 прокомментировал 8 лет назад
Владелец

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 открыл снова 8 лет назад
Этот Pull Request может быть объединён автоматически.
Войдите, чтобы присоединиться к обсуждению.
Нет меток
Нет этапа
Нет ответственного
2 участников
Загрузка...
Отмена
Сохранить
Пока нет содержимого.