Creating an Array
Collapse Content
Show Content
This challenge involves creating your own array.
Note: The provided boilerplate code is for Java.
Challenge
You are given two integers a
and b
. Create and return an array that consists of those two numbers with the smallest number first.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.
Comments
thales
Jul 18, 11:46 AMa solution:
my code
Weasel Bandit
Nov 21, 4:26 PMI didn't know that you could sort an array automatically... But the code worked none the less... my code