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

 

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

Write a method that accepts a positive integer "number" and an integer 2 through 10 "base". The method then returns a string representation of "number" converted to the given "base".


toBase(71, 3) → "2122"
toBase(984, 5) → "12414"
toBase(65432, 9) → "108672"

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

public String toBase(int number, int base) { }

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

Copyright Nick Parlante 2017 - privacy