interface outer{
    void display();
    interface inner{
        void nestedmethod();
    }
}
class Main implements outer.inner{
    public void nestedmethod(){
        System.out.println("This is a nested interface example");
    }
    public static void main(String[] args){
        Main obj=new Main();
        obj.nestedmethod();
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: