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

 

jebbert@volusia.k12.fl.us > freqLetter
prev  |  next  |  chance

Write a method that accepts a single String parameter. This string will consist of ONLY upper- and lower-case letters and spaces. Ignore the case of the letters and return an upper-case letter representing the MOST FREQUENTLY occuring letter. If there are ties for most frequently occuring letter, return the one that comes alphabetically first and is in the tie for most frequent. The input parameter will contain at least one letter.


freqLetter("Statistical analysis was used to determine the author of some of the Federalist Papers") → "E"
freqLetter("Programming must make much merryment") → "M"
freqLetter("once upon a time there was a game and then there was not") → "E"

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

public String freqLetter(String orig) { }

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: 390

Copyright Nick Parlante 2017 - privacy