id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

firstLetters


Return an ArrayList of Strings which contains the first letter, in lowercase, of each word in a sentence in alphabetical order with no duplicates


firstLetters("Hello there") → ["h", "t"]
firstLetters("She sells sea shells by the seashore") → ["b", "s", "t"]
firstLetters("Hello my lady, goodbye my lady") → ["g", "h", "l", "m"]

...Save, Compile, Run (ctrl-enter)

public List firstLetters(String str) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy