that is my code... im trying to sort arrayList and im getting this errorCode:private void add(ArrayList v)
{
ArrayList arrayList = new ArrayList();
for(int j=0; j<v.size(); j++)
{
arrayList.add(v.get(j));
}
for(int i=0;i<ret.size();i++)
{
if(Collections.sort(arrayList) ==ret.get(i))
ret.add(Collections.sort(arrayList));
}
}
"'void' type not allowed here"
please help

