2
int[] teste1 = {3524, 79, 2573, -4216, -4126, -4169, 1876, 2903, 2702, 1090, -6544, -8600};
int[] teste2 = {3524, 79, 2573, -4216, -4126, -4169};
I have a vector with 12 records and another with 6, I need to go twice without repeating.
Example, first process of 3524 until 4169 afterward 1876 until -8600.
I’m doing this to compare the second with the first.
for(int i = 0; i < teste1.length/2; i++) {}
orfor(int i = 0; i < 6; i++) {}
. Your doubt is that same?– Renan Gomes
This way it will go through 6 records and stop. I need it to run twice, first from 0 to 5 and then from 6 to 11.
– Carlos Pereira