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