COmo funciona o arraycopy?

3 respostas
R
public class Programa

{

public static void main(String[] args)

{

char [] vet1 = {p,t,z,c,f,y,t,k};

char [] vet2 = new char [4];
System.arraycopy([b]vet1,3,vet2,0,4[/b]);
 
 for (int i = (vet2.length -1); i > -1; i--)
 	System.out.printf("%c",vet2[i]);

}

}

eu me esqueci a ordem do arraycopy… se alguem sabe me ajude por favor!

3 Respostas

S

a API é meu pastor e nada me faltará.

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#arraycopy(java.lang.Object,%20int,%20java.lang.Object,%20int,%20int)

R

alguem tem outra opnião?

K

Ssalgado:
a API é meu pastor e nada me faltará.

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#arraycopy(java.lang.Object,%20int,%20java.lang.Object,%20int,%20int)

Criado 19 de junho de 2008
Ultima resposta 19 de jun. de 2008
Respostas 3
Participantes 3