@Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        for (int exponent : this.getExponents()) {
            builder.append(formatMonome(exponent, this.getCoeficient(exponent)));
        }
            
        if(monomes.isEmpty()) 
            builder.append("0");
       
        if(this.getMaximumExponent() > 0) {
            if (this.getCoeficient(this.getMaximumExponent()) > 0) {
                builder.deleteCharAt(0);
            }
        }
        return builder.toString();
    }