Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public void actionPerformed(ActionEvent e) {
  2. String data = txtTall.getText();
  3. double tall = double.parseDouble(data);
  4. object kilde = e.getSource();
  5. String resultat;
  6.  
  7. if (e.getSource() == btnKvadrat) {
  8. (txtTall * txtTall);
  9. } else {
  10. Math.sqrt(tall);
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement