A DESCRIPTION OF THE PROBLEM :
In the URL(String protocol, String host, int port, String file) constructor documentation, the symbol hyphen "-" should be removed from the end of the following sentence "Protocol handlers for the following protocols are guaranteed to exist on the search path :-"
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/net/URL.html#URL-java.lang.String-java.lang.String-int-java.lang.String-
In the URL(String protocol, String host, int port, String file) constructor documentation, the symbol hyphen "-" should be removed from the end of the following sentence "Protocol handlers for the following protocols are guaranteed to exist on the search path :-"
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/net/URL.html#URL-java.lang.String-java.lang.String-int-java.lang.String-