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 Getting Started with Java Strings, Variables, and Formatting

Alyssa Miller
Alyssa Miller
713 Points

What is wrong with this? console.printf("Alyssa can code Java"); its keeps giving an error

I was asked to call the printf method on console and it isn't working. I wrote console.printf("Alyssa can code Java"); but it keeps giving an error about spelling

1 Answer

Jacek Szemplinski
Jacek Szemplinski
6,423 Points

Hi Alyssa,

It is indeed spelling error, as your task in this challenge was to print "Alyssa can code in Java" (you've omitted the "in" word).

Just add "in" and it should work fine ;)

Jacek.