2 then click the "Refactor" option menu in the android studio menu.
3 this will pop up an option menu with "change signature" in the drop-down menu.
4 the option box of change signature will pop up, add the parameters of the class, and click the Add button.
5 then enter the parameter type in type, and the parameter name is the parameter name.
6 enter the preview effect that can be in the bottom position after completion.
7 After changing the method signature, you can see that the parameter is added in the code editor.