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

 

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

Write a method that converts an array of integers into a string that starts with "number list: " and then continues with a string representation of the original array of integers. Look at the test data for examples. You are not allowed to use any ArrayList objects or methods.


test2024_02_08_APP1SLHL_stringAry([80, 20, 10]) → "number list: {80,20,10}"
test2024_02_08_APP1SLHL_stringAry([72]) → "number list: {72}"
test2024_02_08_APP1SLHL_stringAry([5, 7, -2, 85]) → "number list: {5,7,-2,85}"

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

public String test2024_02_08_APP1SLHL_stringAry(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: 280

Copyright Nick Parlante 2017 - privacy