#26 Randall Fundamental Lab Complete

otevřený
shadowmyths chce sloučit 1 revizí z větve shadowmyths/ZCW-Lab-Fundamental-Methods:master do větve master
Není zde žádný obsah.
nhu313 okomentoval před 6 roky
Vlastník

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.
Tento požadavek na natažení může být automaticky sloučen.
Přihlašte se pro zapojení do konverzace.
Bez štítku
Bez milníku
Bez zpracovatele
2 účastníků
Načítání...
Zrušit
Uložit
Není zde žádný obsah.