public static String appendPath(String pathTo,String pathFrom){
  if (pathTo == null || pathTo.length() == 0) {
    return pathFrom;
  }
 else   if (pathFrom == null || pathFrom.length() == 0) {
    return pathTo;
  }
 else {
    return pathTo + File.pathSeparator + pathFrom;
  }
}

public static String appendPath ( String pathTo , String pathFrom ) { if ( pathTo == null || pathTo . length ( ) == 0 ) { return pathFrom ; } else if ( pathFrom == null || pathFrom . length ( ) == 0 ) { return pathTo ; } else { return pathTo + File . pathSeparator + pathFrom ; } }
utility method for appending path from pathfrom to pathto .
