public static String dbf(String shpFileName){
  String ret=null;
  if (shpFileName != null) {
    ret=shpFileName.substring(0,shpFileName.indexOf(".shp")) + ".dbf";
  }
  return ret;
}

public static String dbf ( String shpFileName ) { String ret = null ; if ( shpFileName != null ) { ret = shpFileName . substring ( 0 , shpFileName . indexOf ( ".shp" ) ) + ".dbf" ; } return ret ; }
figures out the dbf file name from the shp file name .
