If in your code childList is an array of string, this might help you:
import java.util.Arrays;
import org.apache.commons.lang.ArrayUtils;
string[] childList = new string[];
public String removeChild(String ChildName)
{
for (int i = childList.length-1; i >= 0; i--)
{
if (childList[i].equals(ChildName))
{
childList = ArrayUtils.remove(childList, i);
return ChildName;
}
}
return null;
}