Per copiare due array, diciamo input e output, dello stesso tipo si può fare così:
Object[] input, output;
...
System.arraycopy(input, 0, output, 0, output.length);
così si copia velocemente (il + velocemente possibile!) ciò che è in input da 0 ad output.length dentro output.

-- LeonardoLombardo - 02 Feb 2001

Topic revision: r1 - 2001-02-02 - LeonardoLombardo






 
Questo sito usa cookies, usandolo ne accettate la presenza. (CookiePolicy)
Torna al Dipartimento di Informatica
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback