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

 

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

Write a method that converts the string input parameter from binary to its integer base 10 equivalent.


fromBinary("1000") → 8
fromBinary("1111") → 15
fromBinary("0") → 0

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

public int fromBinary(String biNum) { }

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