How do you find the length of a string in Java?
To find the length of a string, you can use the length() method. It counts the characters, including the whitespace.
You're almost there! The concept is correct, but could you explain how string length is affected by special characters like escape sequences?
Can you give an example of how escape sequences (like '\n') affect the length of a string?