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

 

andersoniii.edwin@cusd80.com > makeArray
prev  |  next  |  chance

makeArray - Write the method to receive two integers returns an array of integers from the smallest to the largest given values. Example 2, 6 would return array containing 2 3 4 5 6


makeArray(2, 6) → [2, 3, 4, 5, 6]
makeArray(4, 8) → [4, 5, 6, 7, 8]
makeArray(0, 10) → [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

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

public int[] makeArray(int a, int b) { }

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

Copyright Nick Parlante 2017 - privacy