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

 

string_nameOrder


Given two Strings containing last names, return whichever last name comes first alphabetically!


string_nameOrder("Monroe", "Cavazos") → "Cavazos"
string_nameOrder("Cavazos", "Guidry") → "Cavazos"
string_nameOrder("Monroe", "Guidry") → "Guidry"

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

public String string_nameOrder(String lastName1, String lastName2) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy