from java docs: There are two additional types of inner classes. You can declare an inner class within the body of a method. Such a class is known as a local inner class. You can also declare an inner class within the body of a method without naming it. These classes are known as anonymous inner classes.
how do i convert the code given in example as inner class and anonymous inner classes?
Appreciate detailed full coding so that i can understand the difference between these three class types (inner class / local / anonymous).