There are two different String arrays.
String a[] = {"a", "b", "c", "d"}; String b[] = {"1", "2", "3", "4"}; And I want to make these two arrays into a 4*2 matrix.
String answer[][] = {{"a", "1"}, {"b", "2"}, {"c", "3"}, {"d", "4"}}; How can I make this matrix?
String[][] result = {a,b}; After making this result, is there any other way to rotate the rows and columns of the result?