Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import java.lang.Math; // headers MUST be above the first class
  2. import java.net.URL;
  3.  
  4. // one class needs to have a main() method
  5. public class HelloWorld
  6. {
  7. // arguments are passed using the text field below this editor
  8. public static void main(String[] args)
  9. {
  10. try {
  11. System.out.print(new URL("https://x.com#@y.com").getHost());
  12. } catch (Exception e) {}
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement