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

 

tim@ggc.edu > getStringListFromNum
prev  |  next  |  chance

The int argument consists of ones and zeros. Return an arraylist of strings that consist of the strings "one" and "zero" that represents the ones and zeroes that appear in the int argument from left to right.


getStringListFromNum(0) → ["zero"]
getStringListFromNum(1) → ["one"]
getStringListFromNum(10) → ["one", "zero"]

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

public List<String> getStringListFromNum(int num) { }

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

Copyright Nick Parlante 2017 - privacy