Current location - Quotes Website - Signature design - How does Android studio change the method signature?
How does Android studio change the method signature?
1 select the method name of a class in the code editor of android studio.

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.