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

 

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

Write a method that returns a string made up of 'copies' copies of the digit in the ones place of 'num'. Look at the test data for examples.


test2021_11_18_APSLHL_digits(1224, 5) → "44444"
test2021_11_18_APSLHL_digits(806, 1) → "6"
test2021_11_18_APSLHL_digits(412, 5) → "22222"

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

public String test2021_11_18_APSLHL_digits(int num, int copies) { }

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

Copyright Nick Parlante 2017 - privacy