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

 

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

Write a method that has a non-negative integer parameter for the original number and a positive integer parameter for the base. The method converts that original number into the given base. The base can be any number from 2 to 36.


toBase(424, 25) → "GO"
toBase(12487, 19) → "1FB4"
toBase(3598, 33) → "3A1"

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

public String toBase(int num, 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