You are viewing a single comment's thread. Return to all comments →
First of all refer this document to understand the inner class creation - http://tutorials.jenkov.com/java/nested-classes.html
Now what I did is:
o = new Object(); Solution.Inner instance = new Solution.Inner(); Inner.Private inner = instance.new Private(); o = (Object) inner; System.out.println(num + " is " + inner.powerof2(num)) ;
Seems like cookies are disabled on this browser, please enable them to open this website
Can You Access?
You are viewing a single comment's thread. Return to all comments →
First of all refer this document to understand the inner class creation - http://tutorials.jenkov.com/java/nested-classes.html
Now what I did is: