private boolean isStrInList(String name,String[] list){
  boolean retValue=false;
  if (list != null) {
    for (int i=0; i < list.length; i++) {
      if (name.startsWith(list[i])) {
        retValue=true;
        break;
      }
    }
  }
  return retValue;
}

private boolean isStrInList ( String name , String [ ] list ) { boolean retValue = false ; if ( list != null ) { for ( int i = 0 ; i < list . length ; i ++ ) { if ( name . startsWith ( list [ i ] ) ) { retValue = true ; break ; } } } return retValue ; }
isstrinlist is the string ' name ' in the list of strings .
