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

 

array_fillUp


Given a start number and a length, create and return a new integer array that holds length number of integers whose values begin at start and increment by one.


array_fillUp(0, 5) → [0, 1, 2, 3, 4]
array_fillUp(1, 5) → [1, 2, 3, 4, 5]
array_fillUp(2, 3) → [2, 3, 4]

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

public int[] array_fillUp(int start, int len) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy