How can I call the same lines of code in Java, so those lines have access to all variables without need to pass them through parameters?

前端 未结 0 2038
走了就别回头了
走了就别回头了 2021-02-13 16:33

I have an app in Java with calculator-like buttons and I have the same OnClick Listener on every button. This Listener has a switch statement and based on which button was click

相关标签:
回答
  • 消灭零回复
提交回复
热议问题