What are ways to manipulate Arrays?

So in Shiffman's book (Learning Processing) he introduces the idea of shifting array variables down one spot, like: for (int i = 0; i < x.length–1; i++ ) { x[i] = x[i + 1 ]; }

This introduces new and creative ways to manipulate data and get interesting results, like the "snake" game where the mouse positions are stored for a period. So i was wondering, what are some other ways to manipulate data within an array?

Tagged:
Sign In or Register to comment.