TERMS is an array list filled with "Term" objects. i don't understand why this doesn't work...this is my first time using arrayList and i don't really know much about itCode:for(int i=0;i<TERMS.size();i++)
{
if(TERMS[i].operator.equals("*"))
{
TERMS[i-1].value*= TERMS[i].value;
TERMS[i].value = 0;
TERMS[i].operator = "+";
if(TERMS[i].Type.equals("x")) TERMS[i-1].Type = "x";
i = 0;
}
}
