Skip to content

Commit

Permalink
Add 'getHaikuAsChars' method.
Browse files Browse the repository at this point in the history
  • Loading branch information
NiveditaMishraCoding committed Sep 22, 2023
1 parent 486b8bd commit 8c83f97
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ public String getHaiku()

public IntStream getHaikuAsChars()
{
// TODO: Create an IntStream representing the chars from this.getHaiku()
// Hint: Look at the chars() method on the String class
return null;
return this.getHaiku().chars();
}

public List<Map.Entry<Character, Long>> topLetters()
Expand Down

0 comments on commit 8c83f97

Please sign in to comment.