Skip to content

Commit

Permalink
Add implementation to TextProcessorEC.getHaikuAsCharAdapter(). Closes #
Browse files Browse the repository at this point in the history
  • Loading branch information
harshitha-ravi committed Sep 22, 2023
1 parent b0be0f1 commit 6045e59
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ private String getHaiku()

public CharAdapter getHaikuAsCharAdapter()
{
// TODO: Wrap this.getHaiku() in a CharAdapter
// Hint: Look a the Strings class.
return null;
// Hint: Wrap this.getHaiku() in a CharAdapter, Look at the Strings class.
return CharAdapter.adapt(this.getHaiku());
}

public ListIterable<CharIntPair> topLetters()
Expand Down

1 comment on commit 6045e59

@harshitha-ravi
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prathasirisha - Is it okay now?

Please sign in to comment.