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

 

sspiege3@schools.nyc.gov consumerlab > alphabetize
prev  |  next  |  chance

Write a method named alphabetize that receives a String parameter which is guaranteed to contain to consist of two unique, lowercase words separated by a single blank space. The method returns a String that contains the two words in alphabetical order and still separated by a single blank space.


alphabetize("zebra apple") → "apple zebra"
alphabetize("apple banana") → "apple banana"
alphabetize("apple apple") → "apple apple"

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

public String alphabetize(String word) { }

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

Copyright Nick Parlante 2017 - privacy