Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[] src = new int[]{6, 3, 25, 19, 8, 6, 7};
- int numCopies = 3;
- int[][] copies = new int[numCopies][src.length];
- for (int i = 0; i < numCopies; i++) {
- for (int j = 0; j < src.length; j++) {
- copies[i][j] = src[j];
- }
- System.out.println("SRC" + (i + 1) + ": " + Arrays.toString(copies[i]));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement