Did you edit your original entry ? I thought I saw an extra } when I looked at it the first time
Ok I had some time to get back to this issue. There is nothing wrong with your code as you have it now. I thought I saw an extra } bracket previously. May have been another problem I was looking at though. Anyway, your code as it stands is good. I’ve been checking all the problems here on Java’s Netbeans IDE.
If you still can’t get it to run, one or more of the following reasons persist.
The codecademy interface is a bit weird. There is a problem in the parser that checks the user input. Sometimes it will accept whitespace between things like
public void bark () and sometimes not public void bark()
What browser are you using ? I had problems with IE11 and switched to Firefox.
Whoever programmed these lessons did’nt pay a lot of attention to letting users fix input errors.