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

 

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

Write a method that accepts an array of integers that only contains the numbers 0, 1, 2, or 3 in any order and any amount. Return a string made up of the words for each of the number in the same order they appear in the array. Put a space between each word and after the last word. If there are no numbers in the array, return an empty string.


owlSayNum([2, 2, 0, 1]) → "two two zero one "
owlSayNum([3]) → "three "
owlSayNum([]) → ""

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

public String owlSayNum(int[] nums) { }

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