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 trialosama jaradat
812 Points2nd question of quiz
Next, change the word 'UNKNOWN' in the aString variable to either 'BEFORE' or 'AFTER'. The otherString variable mentioned in the sentence is declared and set in the onCreate() method of the parent class of this MainActivity. You want the sentence to be true, so choose the correct word knowing that otherString is set in the parent onCreate() method.
i'm not able to understand the question!
2 Answers
Rajesh Mule
2,125 PointsaString = "This variable is set AFTER the 'otherString' variable in Activity";
Andrew McCormick
17,730 PointsIt's asking you to decide if the aString variable is set before or after the 'otherString' variable in the onCreate method of the parent class.
Look at the order of where the aString is set versus when the super.OnCreate() method is called.
All you are going to do in this step is simply replace the word "UNKNOWN" with "BEFORE" or 'AFTER' depending on the aString variable's relation to the super.onCreate() call.