If I understand your question correctly, here is the code for assigning row index 3 from anArray as {1,2,3,4} without loops:
int[][] anArray = new int[4][4]; anArray[3] = new int[] {1,2,3,4}; System.out.println(Arrays.deepToString(anArray));
Output:
[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [1, 2, 3, 4]]
source share