Created
August 7, 2013 01:07
-
-
Save davecahill/6170364 to your computer and use it in GitHub Desktop.
This file contains 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
import java.net.URI; | |
class HelloWorldApp { | |
public static void main(String[] args) { | |
try { | |
String blah = "blah"; | |
URI one = new URI(blah); | |
URI three = new URI("test", blah, null); | |
URI four = new URI("test", blah, null, null); | |
System.out.println(one); // prints "blah" | |
System.out.println(three); // prints "test:blah" | |
System.out.println(four); // prints "test://blah" | |
} catch(Exception e1) { | |
e1.printStackTrace(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment