The Java Tutorials' Weblog
The Inner Class Example Page
Our Core Tutorial has recently been updated as a result of your feedback. We modified the page that demonstrates the use of the inner class by simplifying it and thus focusing particularly on inner classes. Now, when we talk about inner classes, we no longer use complex data structures like stacks and complex algorithms related to them. Let's just take an array and step through it, picking even values. Simple and clear.For those of you who enjoyed the stack example, don't worry. In addition to the example we mentioned earlier, we updated the one about stacks as well. It uses a stack based on an array, and push and pop methods to implement the FILO method and an inner class. To show the inner class in action, we 'expand' the stack functionality by stepping through it and picking its even values (this is not allowed for 'standard' stacks, as you probably remember). In brief: we push, pick even, and then pop. See the following link to view the updated stack example.
In conclusion, we would like to ask your opinion about this tutorial change. What do you think? Let's make our tutorial the most effective and useful that it can be. After all, isn't that the most important thing about tutorials? :)
-- Dmitry Bondarenko
Posted at 09:25AM Nov 09, 2007 by The Java Tutorial Team | Comments[2]
Friday Nov 09, 2007
Nice post man!
Posted by anthony on December 11, 2007 at 10:10 AM PST #
thanx
Posted by pankaj on September 29, 2008 at 08:37 AM PDT #