The grammar for method declarations in Java is something like the following:
Java method declaration BNF:
method_declaration ::= { modifier
Brackets are used for return types being arrays, for example :
Sting myMethodThatRetrunsStringArray[] { //Implementation // return a String array }