#26 Randall Fundamental Lab Complete

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

Good job on the MathUtilities. For the PrediateUtilties, the comparison returns a boolean so you don't need the if statement.

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

By the way, your isLessThan will always return false and isLessThanOrEqualTo will always return true. The reason is because your if statement has the semicolon, that means that is the end of the statement. So the if statement doesn't do anything.

StringUtilities

It looks like you understood string concatenation because you add the "Hello" + " Java". Although this passes the test, the intent of that method is for you to use the input to add the Strings together like this:

    public String concatenation(int firstSegment, String secondSegment){
        return firstSegment + secondSegment;
    }

For getSuffix, a better way to write it is input.substring(input.length() - 3).

You did all of this right, except you didn't use the input given. Please redo the homework using the arguments in the method.

Good job on the MathUtilities. For the PrediateUtilties, the comparison returns a boolean so you don't need the if statement. ``` public Boolean isLessThan(int x, int y) { return x < y; } ``` By the way, your isLessThan will always return false and isLessThanOrEqualTo will always return true. The reason is because your if statement has the semicolon, that means that is the end of the statement. So the if statement doesn't do anything. ### StringUtilities It looks like you understood string concatenation because you add the "Hello" + " Java". Although this passes the test, the intent of that method is for you to use the input to add the Strings together like this: ``` public String concatenation(int firstSegment, String secondSegment){ return firstSegment + secondSegment; } ``` For getSuffix, a better way to write it is `input.substring(input.length() - 3)`. You did all of this right, except you didn't use the input given. Please redo the homework using the arguments in the method.
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.