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 trialRon Burr
371 Pointshow do I capture the results from the `readLine` in the String band on my quiz? What am I missing?
Android Development. Java. I am on Challenge Task 4 0f 4 and am spinning my wheels.
4 Answers
Ken Alger
Treehouse TeacherRon;
Welcome to Treehouse!
Task 4 is asking:
Finally, uncomment the last line and correct it. This one seems to be missing something at the start of the statement. Press check work if you don't see it and view the compiler error.
The prompting code is:
// band = console.readLine("Which band? ");
Let's skip that last sentence so that we don't have an error, okay?
So the task sentence we should concern ourselves with is: This one seems to be missing something at the start of the statement. So our prompting code is missing something, hmm. How do we properly assign the variable band
in Java? That variable will be of type String
as the user input will be input as a string, correct?
Hopefully that points you in the correct direction. Post back if you're still stuck.
Ken
Ken Alger
Treehouse TeacherRon;
I forgot to ask what code you have tried... sorry about that lapse.
Ken
Ron Burr
371 PointsThanks Ken and Ricky. Got it figured out. Amazing what taking a 5 minute break can do for your mind set!
Ken Alger
Treehouse TeacherRon;
Breaks are very helpful! Amazing what stepping away can do.
Pleased it all got sorted out and once again, welcome to Treehouse.
Happy coding,
Ken
Ricky Sparks
22,249 PointsYour welcome :D Do any of you guys know the problem to my android self-Destructing messaging app? here is a link to the forum.
https://teamtreehouse.com/forum/ribbit-app-has-an-error-in-manifest-file-screenshot-included
Christian Sanchez
3,970 PointsEvery statement in java starts with a string! The fourth statement does not start with a string; therefore, what is it a missing? _____
Ricky Sparks
22,249 PointsRicky Sparks
22,249 Pointscan you paste the code :D