This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

local inner class parameters

 
Ken Sampson
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am not able to understand why a local variable is required to be declared final for a local inner class. Please let me know with an illustration.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50217
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More of a beginner's question.
Have a look at this recent thread; a search will pick up lots more examples in the Ranch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic