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.
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.For getSuffix, what we're expecting is the last three character, that means
return input.substring(input.length() - 3);
Please finish up the homework.