SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
Object temp = pool[position]; for (int i = position-1; i >= 0; i--) { array[i+1] = array[i]; } array[0] = temp;
Look here to see it working: http://www.ideone.com/5JfAg