code: public static boolean move(File source, File destination) {
          if (source == null || destination == null) {
              return false;
          }
          if (source.renameTo(destination)) {
              return true;
          } else {
              return copy(source, destination) && delete(source);
          }
      }
docs: Move a file or directory. Initally attempts to move the File using
  java.io.File.renameTo(). However, should this operation fail (e.g. when
  source and destination are across different filesystems), will attempt to
  copy and then delete the source.
  
  @param source
  @param destination
  @return <code>true</code> if the operation was successful;
  <code>false</code> otherwise (which includes a null input).