Anonymous
public text v1 · immutableif (polyA.length >= polyB.length) {
polychoice = 1;
for (int p = 0; p < polyB.length; p++) {
int coefA;
int coefB;
coefA = polyA[p].getCoef();
coefB = polyB[p].getCoef();
coefA = coefA + coefB;
polyA[p].setCoef(coefA);
}
} else {
polychoice = 2;
for (int p = 0; p < polyA.length; p++) {
int coefA;
int coefB;
coefA = polyA[p].getCoef();
coefB = polyB[p].getCoef();
coefA = coefA + coefB;
polyB[p].setCoef(coefA);
}
}