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 1282
广开言路
广开言路 2021-02-13 16:42

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

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