Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int origen[ ] = {2,10,-4,8,0};
- int [ ] destino = new int [origen.length];
- for (int i = 0; i < origen.length; i++){
- destino[i]=origen[i];
- }
- int i;
- for ( i = 0; i < origen.length; i++){
- System.out.println("Indice: " + i + " valor: " + destino[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement