#17 Committing String Homework

Open
chitraBegerhotta wants to merge 2 commits from chitraBegerhotta/ZCW-Lab-Fundamental-Methods:master into master
There is no content yet.
nhu313 commented 6 years ago
Owner

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.
This pull request can be merged automatically.
Sign in to join this conversation.
No Label
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.