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

 

toString


Without calling the actual method, write the Arrays.toString() method that will return a String representation of the given array of integers.


toString([1, 2, 3, 4]) → "[1, 2, 3, 4]"
toString([8, 3, 7, 2, 6]) → "[8, 3, 7, 2, 6]"
toString([5]) → "[5]"

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

public String 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: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy