这是我的代码来计算并通过按下按钮将它们显示给标签 我想知道有没有办法让它自动化......
int one =Integer.parseInt(value_1.getText());
int two =Integer.parseInt(value_2.getText());
int three =Integer.parseInt(value_3.getText());
String answer = String.valueOf(one+two+three);
lbltotal.setText(answer);