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

juan esquivel
juan esquivel
516 Points

im stuck

what to do in the thirdquestion

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

1 Answer

Marc Schultz
Marc Schultz
23,356 Points

You already did it!

console.printf ("%s can code in java", firstName);

The %s in combination with the firstName variable is what you have to do in question three. If your challenge does not pass, remove the following line, because it is not part of the three objectives:

console.printf ("tony can code in java");