Can You Access?

  • + 3 comments

    Although My Code is not mathing with the Editorial Code.

    But It's working on Java 8.

    //Write your code here
                Inner inner = new Inner();
                o = inner.new Private();
                String output = ((Inner.Private) o).powerof2(num);
                System.out.println(num + " is " + output);