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

 

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

When cooking, sometimes you must slice up some veggies, or maybe some mushrooms. In this method, we are cooking with non-negative integer numbers. We will slice these numbers up into their individual digits and return an array containing the digits in their original order. None of the input parameters will be negative and none will have more than 6 digits. Return an array of 6 integers representing the digits of the original number in their original order.


foodNetSliced(537) → [0, 0, 0, 5, 3, 7]
foodNetSliced(12829) → [0, 1, 2, 8, 2, 9]
foodNetSliced(0) → [0, 0, 0, 0, 0, 0]

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

public int[] foodNetSliced(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: 250

Copyright Nick Parlante 2017 - privacy