#26 Randall Fundamental Lab Complete

オープン
shadowmyths が 1 個のコミットを shadowmyths/ZCW-Lab-Fundamental-Methods:master から master へマージしようとしています
shadowmyths6 年 前 にコメントしました
まだコンテンツがありません
nhu3136 年 前 にコメントしました
オーナー

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.
このプルリクエストは自動的にマージできます。
ログインして議論に参加
ラベルなし
マイルストーンなし
担当者なし
参加者数 2
読み込み中…
キャンセル
保存
まだコンテンツがありません