Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJodie Wong
3,522 PointsfactLabel reassigned
What does Ben mean when he says "factLabel cannot be reassigned". I get that the "final" keyword means that the factLabel is constant and therefore cannot be changed, but does the act of calling factLabel.setText(fact) not change this constant.
My best interpretation of this is that when Ben said the factLabel could not be reassigned. I think what it means is that the id in the R class can't be changed since it is constant and has the final keyword. So rather than changing the id itself when calling the factLabel.setText(fact). It simply changes the message attached to that id.
Hope I made sense there. So ye anyone who can clarify my understanding just offer up your 2 cents.