#26 Randall Fundamental Lab Complete

오픈
shadowmyths shadowmyths/ZCW-Lab-Fundamental-Methods:master 에서 master 로 1 commits 를 머지하려 합니다
shadowmyths 코멘트됨, 6 년 전
아직 콘텐츠가 없습니다.
nhu313 코멘트됨, 6 년 전
소유자

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명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.