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

 

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

Write a method that accepts an integer array 'nums' as an input parameter. Return a string-version of that array. In other words, return a representation of that array written as a string. Look at the test data for examples.


mar11_2016_APSLHL_toString([1, 5, 4, 2]) → "{1,5,4,2}"
mar11_2016_APSLHL_toString([]) → "{}"
mar11_2016_APSLHL_toString([5]) → "{5}"

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

public String mar11_2016_APSLHL_toString(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