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

 

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

Write a method that has a single non-negative integer parameter to be converted into a binary number. The method returns a string representation of that binary number.


toBinary(1) → "1"
toBinary(2) → "10"
toBinary(3) → "11"

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

public String toBinary(int number) { }

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

Copyright Nick Parlante 2017 - privacy