#32 lab_fundamental

Ouvert
mexiliang veut fusionner 1 révision(s) depuis mexiliang/ZCW-Lab-Fundamental-Methods:master vers master
Il n'existe pas encore de contenu.
nhu313 a commenté il y a 6 ans
Propriétaire

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.
Cette demande d'ajout peut être fusionnée automatiquement.
Connectez-vous pour rejoindre cette conversation.
Pas d'étiquette
Aucun jalon
Pas d'assignataire
2 participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.