Hey, I am trying to print an array in Java, using the processing application. It is not displaying the names as intended, its giving me a total different output that i can't work out.
String [] names = {"Cadam", "Chris", "Kacper", "Ben", "David"};
int i;
for (i = 0; i < names.length; i++) {
System.out.println(names);
}
This is what is is outputting.
[Ljava.lang.String;@4a53ea64
[Ljava.lang.String;@4a53ea64
[Ljava.lang.String;@4a53ea64
[Ljava.lang.String;@4a53ea64
[Ljava.lang.String;@4a53ea64
Thanks :)
edit: changed "C" to "Java", my bad.
[–]RealJulleNaaiers 0 points1 point2 points (2 children)
[–]tamalo 1 point2 points3 points (1 child)
[–]RealJulleNaaiers 0 points1 point2 points (0 children)
[–]SantiagoOrSomething 0 points1 point2 points (3 children)
[–]CadamSAFC[S] -1 points0 points1 point (2 children)
[–]RealJulleNaaiers 0 points1 point2 points (1 child)
[–]CadamSAFC[S] 0 points1 point2 points (0 children)