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

Java Java Objects (Retired) Meet Objects Creating New Objects

Print Out for GoKart, Task 1 no longer works

So I have done exactly what we did in the previous lesson but it tells me that my Task 1 is no longer working. I cannot tell what is wrong. Please help!

public class Example {

    public static void main(String[] args) {
        System.out.println("We are going to create a GoKart");
        GoKart color = new GoKart("red");
        System.out.printf("The color of the GoKart is s%\n",

2 Answers

Daniel Babbev
Daniel Babbev
10,354 Points

You have made a typo, look at your printf statement. You have written "s%", it should be "%s".

Thank you! I realized it soon after I sent the question. :-/