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 trialI7x 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