Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
I7x Coder
Courses Plus Student 2,202 Pointsuncomment and correct the second line. If you do not see the error, click submit and use preview tab to see the compiler
uncomment and correct the second line. If you do not see the error, click submit and use preview tab to see the compiler output.
String firstName = "Gordon";
string lastName = "Sumner";
printf("Hello %s", firstName)
readLine("Which band? ");
2 Answers

Edith England
4,270 PointsHi 17x. Not completely clear what the issue is. Are you struggling with the second line?
If so, my hint would be take a good look at the line above and see how it differs from the second line. Remember Java is case sensitive, meaning that it matters whether types (int, String, etc) are capitalised or not when a variable is declared. If the type is not capitalised when it should be, the variable will not be recognised as being of that type.
HTH
Edith

Edith England
4,270 PointsOk. String needs to be capitalised in the second line. That's the only error I see with line 2.
I7x Coder
Courses Plus Student 2,202 PointsI7x Coder
Courses Plus Student 2,202 Pointsplz need code work