First You should find the index of that letter from companyinfos list the remove that index Try this and let me Know
for (Integer i = (companyinfos.size()-1) ; i>= 0 ; i--) { if(companyinfos.contains('a')){ Integer index =companyinfos.indexOf('a'); companyinfos.remove(index); } }
for (Integer i = (companyinfos.size()-1) ; i>= 0 ; i--)
{
if(companyinfos.contains('a')){
Integer index =companyinfos.indexOf('a');
companyinfos.remove(index);
}
}