#32 lab_fundamental

Avoinna
mexiliang haluaa yhdistää 1 committia lähteestä mexiliang/ZCW-Lab-Fundamental-Methods:master kohteeseen master
Sisältöä ei vielä ole.
nhu313 commented 6 vuotta sitten
Omistaja

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.
Tämä pull-pyyntö voidaan yhdistää automaattisesti.
Sign in to join this conversation.
Ei tunnistetta
Ei merkkipaalua
Ei osoitettua
2 osallistujaa
Ladataan...
Peruuta
Tallenna
Sisältöä ei vielä ole.