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

 

biggestAlphabetically


Imagine you have three words: "apple", "banana", and "cherry". You want to find out which word comes last if you were to put them in alphabetical order, like in a dictionary. This function checks each word to see which one is the biggest. It does this by comparing each word to the others:


biggestAlphabetically("apple", "banana", "cherry") → "cherry"
biggestAlphabetically("apple", "banana", "cherry") → "cherry"
biggestAlphabetically("dog", "cat", "elephant") → "elephant"

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

public String biggestAlphabetically(String a, String b, String c) { }

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

Copyright Nick Parlante 2017 - privacy