private static File constructFilePaths(String file1,String file2){
  File newPath;
  if (file2.startsWith(file1)) {
    newPath=new File(file2);
  }
 else {
    newPath=new File(file1 + "/" + file2);
  }
  return newPath;
}

private static File constructFilePaths ( String file1 , String file2 ) { File newPath ; if ( file2 . startsWith ( file1 ) ) { newPath = new File ( file2 ) ; } else { newPath = new File ( file1 + "/" + file2 ) ; } return newPath ; }
create a new file object from two file paths .
