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!
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
Jason Cortez704 Points
Bummer! Please make sure you leave your printf statement intact
I am working on the third challenge on the strings and variables lesson. my code is the following:
String firstName = "frank"; console.printf ("%s can code in Java!", firstName);
When i submit the code it tells gives me the following error: "Bummer! Please make sure you leave your printf statement intact"
I have not touched the console.printf line and only modified the String firstName portion. Is this some sort of system error or am I missing something?
// I have setup a java.io.Console object for you named console String firstName = "frank"; console.printf ("%s can code in Java!", firstName);
Jason AndersTreehouse Moderator 145,840 Points
While it doesn't technically matter is Java, the code checker doesn't like the space you have between the method name and the opening parenthesis. Just delete the space and the code passes.
console.printf("%s can code in Java!", firstName); // no space
Tagging Craig Dennis for an FYI :)