We were asked to make a simple GUI calculator, I used getSource() to detect the buttons, cause that\'s what they taught us. It works by typing the 1st and 2nd value then cho
You can check if your source is a Button (not actually nessesary since you should know it is only called from a button) and then type cast to a button and use .getText()