The underlined part is completely false, but as often as I do I see, why you have written that, but it is still not correct, because the identifier of a method is not optional like the parantheses after it or the curly braces, which are again after the parantheses, too.A valid method declaration MUST specify a return type, all other things are optional.
So correct the mistake, please.
I hope I could help you,
Kamil