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

 

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

Write a method that accepts a positive integer parameter, then returns an array consisting of single-digit integers with the digits from the input parameter. Look at the test data for examples.


sep9_2016_SLHL_digitArray(1) → [1]
sep9_2016_SLHL_digitArray(83) → [8, 3]
sep9_2016_SLHL_digitArray(517) → [5, 1, 7]

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

public int[] sep9_2016_SLHL_digitArray(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