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

CJ Jugarap
CJ Jugarap
2,517 Points

I'm typing console.printf(“%s can code in Java!”, firstName); for the 3rd challenge, however it isn't working...

I'm not sure what I'm doing wrong...

Name.java
// I have setup a java.io.Console object for you named console
String firstName = "CJ";
console.printf(%s can code in Java!, firstName);

2 Answers

are those “ in your code quotation marks?

console.printf("€œ%s can code in Java!"€, firstName);

Should work.

CJ Jugarap
CJ Jugarap
2,517 Points

Oh that's interesting... I'm actually taking notes and copying and pasting my answers from a word document, which might be the reason for â being shown. I do not, however, see â when I copy and paste on to the console. Deleting and retyping the line does pass the challenge. Thank you for seeing this.