I need to create an array that looks like this:
[0,0,1,1,2,2,3,3,4,4....]
Given my following code, how can I eliminate the counter?
int[] SomeArray = new int[24];
int counter = 0;
for(int x = 0 ; x < SomeArray.length-1 ; x++){
SomeArray[x] = counter;
SomeArray{x+1] = counter;
counter++;
}