Skip to content

Commit ff35ee4

Browse files
jagdish-15kahgoh
andauthored
Update exercises/practice/bob/.approaches/method-based/content.md
Co-authored-by: Kah Goh <[email protected]>
1 parent 498ae46 commit ff35ee4

File tree

1 file changed

+1
-1
lines changed
  • exercises/practice/bob/.approaches/method-based

1 file changed

+1
-1
lines changed

exercises/practice/bob/.approaches/method-based/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In this approach, the different conditions for Bob’s responses are separated i
4141

4242
This approach simplifies the main method `hey` by breaking down each response condition into helper methods:
4343

44-
1. **Trimming the Input**:
44+
### Trimming the Input
4545
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.
4646

4747
2. **Delegating to Helper Methods**:

0 commit comments

Comments
 (0)