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

 

makeStringLoop2


Create a string from the starting number counting down to the ending number (start should be greater than end, if not, return an empty string) placing blank spaces between the numbers.


makeStringLoop2(5, 2) → "5 4 3 2"
makeStringLoop2(10, 8) → "10 9 8"
makeStringLoop2(5, 9) → ""

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

public String makeStringLoop2(int start, int end){ }

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: 220 Post-solution available

Copyright Nick Parlante 2017 - privacy