List of utility methods to do Array Cross Product
Object[][] | crossProduct(Object[] firstArray, Object[]... otherArrays) Cross product many arrays if (otherArrays == null || otherArrays.length == 0) { Object[][] result = new Object[firstArray.length][1]; for (int i = 0; i < firstArray.length; ++i) { result[i][0] = firstArray[i]; return result; Object[][] restArray = new Object[otherArrays.length - 1][]; ... |