Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. int[] hello = new int[] {1, 2, 3};
  2. int[] world = new int[] {4, 5, 6};
  3. int[] zawarudo = new int[hello.length + world.length];
  4.  
  5. // SHIEEEET
  6. int counter = 0;
  7. for (int j = 0;j < hello.length; j++) {
  8. zawarudo[counter] = hello[j];
  9. counter++;
  10. }
  11. for (int j = 0;j < world.length; j++) {
  12. zawarudo[counter] = world[j];
  13. counter++;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement