Parent Directory | Revision Log | Patch
revision 1.28 by mkoch, Sat Apr 17 19:23:19 2004 UTC | revision 1.29 by mark, Sun Sep 19 22:02:35 2004 UTC | |
---|---|---|
# | Line 1110 public class Collections | Line 1110 public class Collections |
1110 | public static void rotate(List list, int distance) | public static void rotate(List list, int distance) |
1111 | { | { |
1112 | int size = list.size(); | int size = list.size(); |
1113 | if (size == 0) | |
1114 | return; | |
1115 | distance %= size; | distance %= size; |
1116 | if (distance == 0) | if (distance == 0) |
1117 | return; | return; |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |