Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.net.*;
- public class UrlDemo {
- public static void main(String []args) throws MalformedURLException {
- URL url = new URL("https://most.jon.a.java.com:666/foo?jalo=pee&shit=piss");
- if (url.getHost().equals("most.jon.a.java.com")) System.out.println("you see?");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement