Check out the following code snippet and adapt to your requirement:
public class Main {
public static void main(String[] args) {
int[] x1 = {1,2,3};
int[] x2 = {4,5,6};
int[][] x = new int[3][2];
for (int i=0;i<x1.length;i++){
x[i][0]=x1[i];
}
for (int i=0;i<x2.length;i++){
x[i][1]=x2[i];
}
for (int i = 0; i < x.length; i++) {
for (int j = 0; j < x[i].length; j++) {
System.out.print(x[i][j] + " ");
}
System.out.println();
}
}
}
The example turns two 1D array:
x1: 1,2,3
x2: 4,5,6
into a 2D array:
x:
1 4
2 5
3 6
Notice some of the looping code blocks can be turned into a method for better re-use. That is for you to ponder.