Thanks for the input people!

Well just like Gox mentioned, I'm also confused as to why the warning appears, as Double and BigInteger implement the Comparable class.

Aradon, this is where I instantiate the ArrayList:

Code:

public Polynomial(int theDegree, ArrayList theCoefs, BigInteger modClass) {
degree = theDegree;
modulo = mocClass;
ArrayList<BigInteger> coefficients = new ArrayList<BigInteger>(theCoefs.size());
for(int i=0; i<theCoefs.size(); i++) {
coefficients.add(((BigInteger)theCoefs.get(i)).mod(modulo));
}
}

I guess I should say that I'm creating a Polynomial class, and **coefficients** is the ArrayList that carries the coefficients of the polynomial.

And where I get the error is this line:

Code:

public void setCoefficient(int index, BigInteger number) {
**coefficients.set(index, number);**
}

I know this warning probably won't make a difference when I run it, but I think as programmers, we'd all like our codes warning-free!