toUpperCases the first Character of the String and returns it
(String aString)
| 1651 | |
| 1652 | /** toUpperCases the first Character of the String and returns it */ |
| 1653 | public static String capitalise(String aString) { |
| 1654 | return aString == null ? "" : aString.length() <= 1 ? aString.toUpperCase() : aString.substring(0, 1).toUpperCase() + aString.substring(1); |
| 1655 | } |
| 1656 | |
| 1657 | /** toUpperCases the first Character of each Word in the String and returns it */ |
| 1658 | public static String capitaliseWords(String aString) { |
no outgoing calls
no test coverage detected