MethodDeclaration:
MethodHeader MethodBody
MethodHeader:
Modifiers Type MethodDeclarator Throws
Modifiersvoid
MethodDeclarator Throws
MethodDeclarator:
Identifier(
FormalParameterList)
MethodDeclarator[
]
FormalParameterList:
FormalParameter
FormalParameterList,
FormalParameter
FormalParameter:
Type VariableDeclaratorId
Throws:
throws
ClassTypeList
ClassTypeList:
ClassType
ClassTypeList,
ClassType
MethodBody:
Block
;