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.

Java Java Basics Using your New Tools Fix the Errors

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

FixMe.java
String firstName = "Gordon";

string lastName = "Sumner";

 printf("Hello %s", firstName)

readLine("Which band?  ");

2 Answers

Edith England
Edith England
4,270 Points

Hi 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

plz need code work

Edith England
Edith England
4,270 Points

Ok. String needs to be capitalised in the second line. That's the only error I see with line 2.