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

 

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

Write a method that converts a positive integer parameter into an array of digits that matches the digits in that integer in order. You are not allowed to use any string commands or methods from ANY preexisting classes such as Integer or ArrayList. Look at the test data for examples.


June2_2016_APSL_digitsToArray(13253252) → [1, 3, 2, 5, 3, 2, 5, 2]
June2_2016_APSL_digitsToArray(457) → [4, 5, 7]
June2_2016_APSL_digitsToArray(1249) → [1, 2, 4, 9]

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

public int[] June2_2016_APSL_digitsToArray(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: 290

Copyright Nick Parlante 2017 - privacy