Parent Directory | Revision Log | Patch
revision 1.23.2.2 by tromey, Sat Aug 7 20:31:55 2004 UTC | revision 1.23.2.3 by tromey, Sun Aug 8 06:38:26 2004 UTC | |
---|---|---|
# | Line 692 public class LinkedList<T> extends Abstr | Line 692 public class LinkedList<T> extends Abstr |
692 | * an element in this list | * an element in this list |
693 | * @throws NullPointerException if a is null | * @throws NullPointerException if a is null |
694 | */ | */ |
695 | <S> public S[] toArray(S[] a) | public <S> S[] toArray(S[] a) |
696 | { | { |
697 | if (a.length < size) | if (a.length < size) |
698 | a = (S[]) Array.newInstance(a.getClass().getComponentType(), size); | a = (S[]) Array.newInstance(a.getClass().getComponentType(), size); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |