#26 Randall Fundamental Lab Complete

Abierta
shadowmyths desea fusionar 1 commits de shadowmyths/ZCW-Lab-Fundamental-Methods:master en master

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.
Este Pull Request puede ser fusionado automáticamente.
Inicie sesión para unirse a esta conversación.
Sin etiquetas
Sin Milestone
Sin asignado
2 participantes
Cargando...
Cancelar
Guardar
Aún no existe contenido.