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

Java Java Basics Using your New Tools Coding the Prototype

Shivam Joshi
Shivam Joshi
1,438 Points

Task 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? ");

Shivam Joshi
Shivam Joshi
1,438 Points

I even tried creating a whole new string for just "Band" but nothing works :c

1 Answer

Paul West
Paul West
6,925 Points

did you try: String band = console.readLine("Which band? ");

Name:GoogleSearch orJonathan Sum
Name:GoogleSearch orJonathan Sum
5,039 Points

Paul 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.

i dd like Paul but isnt going through.. is still saying error