loop on arrays
in
Programming Questions
•
10 months ago
Hello!
I have a simple programming question and i'm sure you have the solution :)
I have many array and I would like to execute a single loop to each of them.
Thanks for your help
I have a simple programming question and i'm sure you have the solution :)
I have many array and I would like to execute a single loop to each of them.
Thanks for your help
- int days = 2
- int[] day0 = { 1, 2, 3};
- int[] day1 = { 4, 5, 6};
- int[] day2 = { 7, 8, 9};
- for ( int i=0; i <= days; i++) {
- println(day[i][i]);
- }
1