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 trial

Android Build a Simple Android App with Kotlin Basic Android Programming Android Programming Basics

Boban Talevski
Boban Talevski
24,793 Points

Which statement correctly changes the showTitle TextView to "Doctor Who"?

I think this question from the quiz needs some updates:

Which statement correctly changes the showTitle TextView to "Doctor Who"?

A showTitle.text = "Doctor Who";

B showTitle.text("Doctor Who");

C showTitle.setText("Doctor Who");

D showTitle = "Doctor Who";

Clearly, both A and C are true, while A seems to be the "Kotlin way" of doing this (my initial answer), and it was just used like that in the video prior to the quiz. I see that the "Java way" under option C does work as well, which is the correct answer, but it's definitely a misleading one, especially in a quiz right after a video which uses the other. And Android Studio is complaining on using that option as well, suggests it should be done the "Kotlin way" :).

1 Answer

Ben Deitch
STAFF
Ben Deitch
Treehouse Teacher

Fixed - thanks for letting us know!