question: public static boolean isUrlString ( String s ) { return s . startsWith ( "http:/" ) || s . startsWith ( "ftp:/" ) || s . startsWith ( "file:/" ) ; }
target:  Indicates if a given String is a URL string. Checks to see if the string begins with the "http:/", "ftp:/", or "file:/" protocol strings.