static boolean pathIsWindows(String path){
  if (path != null && path.length() > 1) {
    return (Character.isLetter(path.charAt(0)) && path.charAt(1) == ':') || (path.startsWith("//") || path.startsWith("\\\\"));
  }
  return false;
}

static boolean pathIsWindows ( String path ) { if ( path != null && path . length ( ) > 1 ) { return ( Character . isLetter ( path . charAt ( 0 ) ) && path . charAt ( 1 ) == ':' ) || ( path . startsWith ( "//" ) || path . startsWith ( "\\\\" ) ) ; } return false ; }
returns true if the path is on windows .
