Welcome to the Treehouse Community
Looking to learn something new?
console.printf("hi my name is %s", firstName); is there a spelling mistake in this.
The compiler shows ther is a spell mistake in
console.printf("hi my name is %s", firstName);
but I don't think there is a spell mistake
// I have setup a java.io.Console object for you named console //console console = System.console(); String firstName = "Ankit"; console.printf("hi my name is %s", firstName);
Jennifer NordellTreehouse Teacher
Hi there! Yes and no. Your variable name is spelled correctly, but you're not printing out what the instructions are asking for. Take a look:
"<YOUR NAME> can code in Java!"
But you're printing out "hi my name is". This will cause the challenge to fail. Challenges can be (and often are) very strict with what they get back from your code. In most cases it must match to the letter. This includes punctuation, capitalization, and even spacing.
Hope this helps!