123456789101112131415161718 |
- public class StringUtilities {
- public Character getMiddleCharacter(String word){
- return word.charAt((word.length()-1)/2);
- }
-
- public String removeCharacter(String value, char charToRemove){
-
-
- return null;//value.removeCharAt(value,charToRemove);
- }
-
- public String getLastWord(String value) {
-
- //return (value + " ").split(" ")[i-1];
- return value.substring(value.lastIndexOf(" ")+1);
- }
- }
|