Issue
How can I check if a string is a URL in Java?
Solution
You can try to create a java.net.URL
object out of it. If it is not a proper URL, a MalformedURLException
will be thrown.
Answered By - Grodriguez
Answer Checked By - Senaida (JavaFixing Volunteer)