code: public static File getFileFromPathList(String fileNameWithNoPath,String[] pathList)
      {
          File foundFile=null;
          if(pathList!=null)
          {
              //get amount
              int amount=pathList.length;
              
              String directoryPath=null;
              File file=null;
              for(int index=0;index<amount;index++)
              {
                  //get next element
                  directoryPath=pathList[index];
      
                  //get file
                  file=new File(directoryPath,fileNameWithNoPath);
                  
                  if((file.exists())&&(file.isFile()))
                  {
                      foundFile=file;
                      break;
                  }
              }
          }
          
          return foundFile;
      }
docs: This function returns the file object of the first location in
  which the requested file is found.
  
  @param   fileNameWithNoPath
  The file name (with no directory path)
  @param   pathList
  The path list
  @return  The file object if found, else null will be returned