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

 

konstans@stuy.edu > arrToString
prev  |  next  |  chance

Convert an array to a string in the format: "{1, 2, 5, 3}" That is: a comma and space in between the integers, and the whole thing surrounded by curly braces. You may not use any methods that convert arrays into string.


arrToString([1]) → "{1}"
arrToString([-1, 2]) → "{-1, 2}"
arrToString([9, 1, 1]) → "{9, 1, 1}"

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

public String arrToString(int[] arr){ }

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

Copyright Nick Parlante 2017 - privacy