Developing an application for Android, i want to record data that will be usefull only for some seconds, so I’ve thought to use an array that is everytime displacing to the right.Something like:
i>i+1, i+1>i+2, i+2>i+3 ...
Is it possible to do this directly, or Do I have to use a for in order to move all data on the array every time I want to add info?
Have you thought about using a stack? I’m not sure if there is something like that in Android SDK but you asked for Java 🙂 http://download.oracle.com/javase/1.4.2/docs/api/java/util/Stack.html