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 Annotations Using Java's Built-In Annotations Using @Override to Fix an Error

Abdullah Mohamed
Abdullah Mohamed
17,323 Points

Error while compiling using @Override annotation to fix errors

Can't find what to do exactly here and there is nothing about this in the video, thanks in advance.

1 Answer

delete 3rd line String name = "" in HolaWorld.java Class and add parameter to sayHelloTo method (String name)

public class c extends HelloWorld { @Override public void sayHelloTo(String name) { System.out.printf("Hola, %s%n!", name); } }