Hi guys, The written code gives the following output:
URL address: https://javarush.us, network protocol - https, domain extension - us
URL address: https://google.com, network protocol - https, domain extension - com
URL address: http://wikipedia.org, network protocol - http, domain extension - org
URL address: facebook.com, network protocol - unknown, domain extension - com
URL address: https://instagram, network protocol - https, domain extension - unknown
URL address: codegym.cc, network protocol - unknown, domain extension - unknown
Precisely in accordance with the task's conditions (IMHO) The last piece of advice was like this: Be sure that the checkDomainExtension(String) method returns the string "unknown" if the URL does not end with com, net, org, or us Please, gimme a hint on how to fix it. Thank you in advance!