if (multX.length < 2 || multY.length < 2) { if (multX.length == 1) { if (multX[0] == 0) return new int[1]; else return multY; } else { if (multY[0] == 0) return new int[1]; else return multX; } }