Syntax error, insert "... VariableDeclaratorId" to complete FormalParameterList

I have the error Syntax error, insert “… VariableDeclaratorId” to complete FormalParameterList with the code public boolean get(Joystick); can anyone help with this

You need to give a name for the Joystick parameter.

Would you be able to give an example?

Never mind I figured it out thanks for the help though