0
Array access outside loop
Hi I have the attached code and I want to access the item elements or all zeroz outside the for loop. Outside the for loop I want all the zeroz not one zero. How do I do that? https://code.sololearn.com/cWXc6y06g2m4/?ref=app
4 ответов
+ 2
Do this
System.out.println(Arrays.toString(yourArray));
+ 2
Sibusiso Mbambo
Arrays is a class in util package so you have to import it.
+ 2
Thanks, got it!
0
I've edited the code with your suggestion but I'm getting an error.