public static void main(String[] args) {
        DomainName dn = new DomainName("www.artofproblemsolving.com");
        System.out.println("Starts with www: "+dn.isWebDomain());
        System.out.println("Extension: "+dn.getExtension());
        System.out.println("Actual name: "+dn.getMiddle());
    }