Beispiel #1
0
 public void up(int fromIndex, int toIndex) {
   while (fromIndex > toIndex) move(fromIndex--, -1);
 }
Beispiel #2
0
 public void down(int fromIndex, int toIndex) {
   while (fromIndex < toIndex) move(fromIndex++, +1);
 }