#32 lab_fundamental

開啟中
mexiliang 請求將 1 次程式碼提交從 mexiliang/ZCW-Lab-Fundamental-Methods:master 合併至 master
尚未有任何內容
nhu313 評論 6 年之前
所有者

Good job on the MathUtilities and PredicateUtilities.

For the string utilities, a few comment. You don't have to call String.format unless there is a format you want, like padding space. So for these methods, you can return the string and concatenate it without calling format.

    public String getHelloWorld() {
        return "Hello World";
    }

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

For getSuffix, what we're expecting is the last three character, that means return input.substring(input.length() - 3);

Please finish up the homework.

Good job on the MathUtilities and PredicateUtilities. For the string utilities, a few comment. You don't have to call `String.format` unless there is a format you want, like padding space. So for these methods, you can return the string and concatenate it without calling format. ``` public String getHelloWorld() { return "Hello World"; } public String concatenation(int firstSegment, String secondSegment){ return firstSegment + secondSegment; } ``` For getSuffix, what we're expecting is the last three character, that means `return input.substring(input.length() - 3);` Please finish up the homework.
這個拉請求可以自動合併。
登入 才能加入這對話。
未選擇標籤
未選擇里程碑
未指派成員
2 參與者
正在加載...
取消
儲存
尚未有任何內容