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

 

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

Write a method that returns a string made up of all the letters from 'first' to 'last'. You may assume that 'first' and 'last' are both letters and that they are the same case (both upper-case or both lower-case). If 'first' and 'last' are the same letter, just return a string with that letter in it. If 'last' comes alphabetically before 'first' return an empty string.


jan19_2018_APSLHL_makeLetters("a", "e") → "abcde"
jan19_2018_APSLHL_makeLetters("z", "m") → ""
jan19_2018_APSLHL_makeLetters("e", "b") → ""

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

public String jan19_2018_APSLHL_makeLetters(char first, char last) { }

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

Copyright Nick Parlante 2017 - privacy