You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/practice/bob/.approaches/method-based/content.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ In this approach, the different conditions for Bob’s responses are separated i
41
41
42
42
This approach simplifies the main method `hey` by breaking down each response condition into helper methods:
43
43
44
-
1.**Trimming the Input**:
44
+
### Trimming the Input
45
45
The `input` is trimmed using the `String`[`trim()`][trim] method to remove any leading or trailing whitespace. This helps to accurately detect if the input is empty and should prompt a `"Fine. Be that way!"` response.
0 commit comments