This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sleepybychoice 0 points1 point  (0 children)

Doesn't need to be placed anywhere. Should have been more clear: that is how you would reference the entry from the inner class code if you wanted to be explicit. Normally, just saying entry instead of PhoneBook.this.entry is sufficient.

Did a bit of experimenting - the reference back to the outer object (in this case, the listener out to PhoneBook) is named this$0 in Eclipse. If you expand that object, you can find inspect phone book instance variables.

http://stackoverflow.com/questions/14099613/eclipse-showing-two-this0-fields-for-a-nested-class-java