"number" and "numberpointzero" are variables, "root" is a JButton and "label" is a JLabel.
Code:
if(e.getSource()==root) {
numberpointzero = Math.sqrt(number);
label.setText(""+numberpointzero);
}
"number" and "numberpointzero" are variables, "root" is a JButton and "label" is a JLabel.
Code:
if(e.getSource()==root) {
numberpointzero = Math.sqrt(number);
label.setText(""+numberpointzero);
}