Java NetBeans Calculator 4 of 5

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
36,958
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 22, 2008

Coding the equals button.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:
see all

All Comments (26)

Sign In or Sign Up now to post a comment!
  • @MrDarkzone93 bit late but here is the script for plusminus. you couldnt see it in the video but i kinda made it up as i went and it works.. :)

    plusminus=(Double.parseDouble(­String.valueOf(display.getText­()))); plusminus=plusminus*(-1);

    display.setText(String.valueOf­(plusminus));

  • Good

  • @pohasche Oh I see, this might help. Thank you!

  • @ShyneBrady no, you needn't. In calculate function(equalsActionPerformed in our case) you should write firstDouble=totalDouble instead of firstDouble=0.

  • I didn't try this but what if you got something like: 1+2+3?

    So you need a thirdDouble and so on???

  • what is the code of plusminus?

  • java is nice

  • thanks for the video, it really help me

  • thanks for the video

  • Hey but you didn't told about when to store the firstvalue of display ..i mean at which control.. :|

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more