The Java Tutorials' Weblog

pageicon Friday Nov 09, 2007

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

Comments:

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 #

Post a Comment:
  • HTML Syntax: NOT allowed

« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
12
14
15
16
18
19
20
21
22
23
26
27
28
29
30
     
       
Today

Feeds

Search this blog

Links

Weblog menu

Today's referrers

Today's Page Hits: 308