It's completely valid and compilable java. The real question is: did you try?
Yes, actually I did try, and it did not compile. Of course, that was before you fixed line 5 which previously read "returns 42".
You're welcome, btw
it's the curse of never putting anything I type on this site into an IDE.
Separate names with a comma.