|
3 | 3 | ## 1. Replace any spaces encountered with underscores |
4 | 4 |
|
5 | 5 | - [This tutorial][chars-tutorial] is useful. |
6 | | -- [Reference documentation][chars-docs] for `char`s is here. |
7 | 6 | - You can retrieve `char`s from a string using the [charAt][char-at] method. |
8 | 7 | - You should use a [`StringBuilder`][string-builder] to build the output string. |
9 | | -- See [this method][iswhitespace] for detecting spaces. Remember it is a static method. |
| 8 | +- Check the [Character][chars-docs] documentation for a method to detect whitespaces. Remember it is a static method. |
10 | 9 | - `char` literals are enclosed in single quotes. |
11 | 10 |
|
12 | 11 | ## 2. Convert kebab-case to camel-case |
13 | 12 |
|
14 | | -- See [this method][toupper] to convert a character to upper case. |
| 13 | +- Check the [Character][chars-docs] documentation for a method to convert a character to upper case. Remember it is a static method. |
15 | 14 |
|
16 | 15 | ## 3. Convert leetspeak to normal text |
17 | 16 |
|
18 | | -- See [this method][isdigit] for detecting numbers. |
| 17 | +- Check the [Character][chars-docs] documentation for a method to detect when a character is a digit. Remember it is a static method. |
19 | 18 |
|
20 | 19 | ## 4. Omit characters that are not letters |
21 | 20 |
|
22 | | -- See [this method][isletter] to check if a character is a letter. |
| 21 | +- Check the [Character][chars-docs] documentation for a method to detect when a character is a letter. Remember it is a static method. |
23 | 22 |
|
24 | 23 | [chars-docs]: https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/Character.html |
25 | 24 | [chars-tutorial]: https://docs.oracle.com/javase/tutorial/java/data/characters.html |
26 | 25 | [char-at]: https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/String.html#charAt(int) |
27 | 26 | [string-builder]: https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/StringBuilder.html |
28 | | -[iswhitespace]: https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/Character.html#isWhitespace(char) |
29 | | -[toupper]: https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/Character.html#toUpperCase(char) |
30 | | -[isletter]: https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/Character.html#isLetter(char) |
31 | | -[isdigit]: https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/Character.html#isDigit(char) |
0 commit comments