Does anyone know how to get Arrays.toString to work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Does anyone know how to get Arrays.toString to work?

Whenever I use Arrays.toString(int[]) it returns the error of unknown symbol.

4th Mar 2017, 3:49 AM
Jonathan
Jonathan - avatar
1 Answer
+ 2
In Javascript it's pretty much nameOfArray.toString(); This converts the contents of the array to a string with each item in the array separated by a comma Note that the toString method doesn't have any arguments.
21st Oct 2020, 4:22 PM
Prince Asiedu
Prince Asiedu - avatar