shorten 1st element in array?
in
Programming Questions
•
2 years ago
is there a better way to do it? I'm using a for loop like this :
- for(int x=0;x<array.length;x++){
- if(x<array.length-1) array[x]=array[x+1];
- else array[x]=a.analogRead(0);
- }
1