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

 

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

Write a method that produces the results seen here! Hint: Temporarily start by returning an empty string in order to see the test data. Hint: It is all about the lengths of the two strings!


quiz2023_12_13_APP1SLHL_longerString("racecar", "amanaplanacanalpanama") → "[racecar] is shorter than [amanaplanacanalpanama]."
quiz2023_12_13_APP1SLHL_longerString("123456789", "3") → "[123456789] is longer than [3]."
quiz2023_12_13_APP1SLHL_longerString("Yoda", "Jedi") → "[Yoda] is equal in length to [Jedi]."

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

public String quiz2023_12_13_APP1SLHL_longerString(String str1, String str2) { }

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

Copyright Nick Parlante 2017 - privacy