Last active
March 25, 2018 12:17
-
-
Save meditat/740ce69e9f561814d1c7bbcf130d581c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//udacity quiz | |
public static URL buildUrl(String udacityUrl) { | |
Uri builtUri = Uri.parse(udacityUrl).buildUpon().build(); | |
URL url = null; | |
try { | |
url = new URL(builtUri.toString()); | |
} catch (MalformedURLException e) { | |
e.printStackTrace(); | |
} | |
return url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment