#17 Committing String Homework

开启中
chitraBegerhotta 请求将 2 次代码提交从 chitraBegerhotta/ZCW-Lab-Fundamental-Methods:master 合并至 master
这个人很懒,什么都没留下。
nhu313 评论于 6 年前
所有者

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.
nhu3136 年前 关闭
nhu3136 年前 重新开启
该合并请求可以进行自动合并操作。
登陆 并参与到对话中。
未选择标签
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。