$ javac Dog.java
Dog.java:17: error: ';' expected
It (the compiler) is not saying that you should put a semi-colon there, it can't tell you what your code should say, it doesn't know what you mean to describe.
It's saying that, based on what it had read so far, or to make some sort of sense out of that line, a semi-colon would be required there.
You will need to reconsider what you meant to do there and find out how to write that.
I suggest reading the line and seeing if you can motivate why each part needs to be there. You should not be able to, because that line isn't valid syntax. If you "can" motivate what each thing in it does, then you have misunderstood something - explaining what you think it does makes it possible for others to point out where in the reasoning you went wrong.