posted 23 years ago
Eduardo, you're confusing "member" variables and "local" variables.
Member variables belong to the enclosing class, and are always available freely to the inner class.
Local variables usually cease to exist when the method in which they are defined exists; however, by marking these local variables final (including paramater variables, which are also local) you can use them in your inner class. An inner class may not use any non-final local variables.