toUpperCases the first Character of each Word in the String and returns it
(String aString)
| 1656 | |
| 1657 | /** toUpperCases the first Character of each Word in the String and returns it */ |
| 1658 | public static String capitaliseWords(String aString) { |
| 1659 | StringBuilder rString = new StringBuilder(); |
| 1660 | for (String tString : aString.split(" ")) if (!tString.isEmpty()) rString.append(capitalise(tString)).append(" "); |
| 1661 | return rString.toString().trim(); |
| 1662 | } |
| 1663 | |
| 1664 | /** @return the opposite facing of this Side of a Block, with a boundary check. */ |
| 1665 | public static byte opposite(int aSide) { |
no test coverage detected