1.8 KiB
1.8 KiB
Hints
1. Replace any spaces encountered with underscores
- This tutorial is useful.
- Reference documentation for
char
s is here. - You can retrieve
char
s from a string using the charAt method. - You should use a
StringBuilder
to build the output string. - See this method for detecting spaces. Remember it is a static method.
char
literals are enclosed in single quotes.
2. Replace control characters with the upper case string "CTRL"
- See this method to check if a character is a control character.
3. Convert kebab-case to camel-case
- See this method to convert a character to upper case.
4. Omit characters that are not letters
- See this method to check if a character is a letter.
5. Omit Greek lower case letters
char
s support the default equality and comparison operators.