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