question: private static URL [ ] pathToURLs ( String path ) throws MalformedURLException { String [ ] names = path . split ( File . pathSeparator ) ; URL [ ] urls = new URL [ names . length ] ; int count = 0 ; for ( String f : names ) { URL url = fileToURL ( new File ( f ) ) ; urls [ count ++ ] = url ; } return urls ; }
target:  Utility method for converting a search path string to an array of directory and JAR file URLs.