io.robe.common.utils.StringsOperations Maven / Gradle / Ivy
package io.robe.common.utils;
/**
* Provides frequently needed methods for string operations.
*/
public final class StringsOperations {
private StringsOperations() {
}
/**
* Capitalizes the first character of the word given.
* It will convert i to I
*
* @param word
* @return result
*/
public static final String capitalizeFirstChar(String word) {
return Character.toUpperCase(word.charAt(0)) + word.substring(1);
}
/**
* Un capitalizes the first character of the word given.
* It will convert i to I
*
* @param word
* @return result
*/
public static final String unCapitalizeFirstChar(String word) {
return Character.toLowerCase(word.charAt(0)) + word.substring(1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy