Does anyone know how to get Arrays.toString to work? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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