Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.lang.Math; // headers MUST be above the first class
- import java.net.URL;
- // one class needs to have a main() method
- public class HelloWorld
- {
- // arguments are passed using the text field below this editor
- public static void main(String[] args)
- {
- try {
- System.out.print(new URL("https://example.com#@qwer.porkylol.com/cancer/whyisthis/happening").getHost());
- } catch (Exception e) {}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement