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

 

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

Write a method that returns a string with 'count' copies of "okra, " followed by the string in 'last'. Note that count will be a non-negative integer less than 30. Also note that 'last' could be an empty string.


okraSaying(3, "is the best!") → "okra, okra, okra, is the best!"
okraSaying(1, "please.") → "okra, please."
okraSaying(0, "where is my okra?") → "where is my okra?"

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

public String okraSaying(int count, String 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: 250

Copyright Nick Parlante 2017 - privacy