The below program demonstrates how to create nested inner class in java. In the below example , Class Inner is defined within Class Outer and can access Class Outer's datafield. Run It Now!
This program can calculate the root (sqrt root, ...) of any given number, the overall purpose is for educational. It shows how we can calculate the root of any given number.
;)