0

How to print the elements in an array

Int []arr={1,2,3,4}; I want output as 1,2 3 4

28th Sep 2021, 6:39 PM
Anitha
2 odpowiedzi
+ 3
Anitha Use enhanced for loop for example: for(int i : arr) { //Print i }
28th Sep 2021, 8:10 PM
A͢J
A͢J - avatar