Parent Directory | Revision Log | Patch
revision 1.30 by mark, Tue Sep 21 18:47:59 2004 UTC | revision 1.31 by mkoch, Mon Sep 27 10:58:56 2004 UTC | |
---|---|---|
# | Line 1713 public class Collections | Line 1713 public class Collections |
1713 | { | { |
1714 | Object[] a = l.toArray(); | Object[] a = l.toArray(); |
1715 | Arrays.sort(a, c); | Arrays.sort(a, c); |
1716 | ListIterator i = l.listIterator(a.length); | ListIterator i = l.listIterator(); |
1717 | for (int pos = a.length; --pos >= 0; ) | for (int pos = 0, alen = a.length; pos < alen; pos++) |
1718 | { | { |
1719 | i.previous(); | i.next(); |
1720 | i.set(a[pos]); | i.set(a[pos]); |
1721 | } | } |
1722 | } | } |
1723 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |