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 trialShivam Joshi
1,438 PointsTask 4 of 4 Help!!!
I need help with the last question on the test :(.
"Finally, uncomment the last line and correct it. This one seems to be missing the data type declaration at the start of the statement. Press Check Work if you don't see the mistake, and then click Preview to see the compiler error.".
What do i do????
band = console.readLine("Which band? ");
1 Answer
Paul West
6,925 Pointsdid you try: String band = console.readLine("Which band? ");
Name:GoogleSearch orJonathan Sum
5,039 PointsPaul West is right. You need to put the String infront of the word "band" because the answer of question"which band?" is going to be a fixed answer. i guess that is how the String means.
JOSEPH WANGANGA
318 Pointsi dd like Paul but isnt going through.. is still saying error
Shivam Joshi
1,438 PointsShivam Joshi
1,438 PointsI even tried creating a whole new string for just "Band" but nothing works :c