Java NetBeans Calculator 5of5
Uploader Comments (mdumser)
All Comments (62)
-
@xXxjheyxXx try this StringBuilder sb=new StringBuilder(display.getText(
)); sb=sb.delete(sb.length()-1, sb.length()); display.setText(sb.toString()) ; -
verryy good i am beginner for swings ,it ws verry helpfull
to save memory u culd have used boolean :) rather that =0 and >0 ,boolean is meant fr the same :)
-
@251progression hey dude, thx fr highlighting
same was in my mind earlier :)
by the way,there is no need to take another variable,
jst make decimalClick=1 on equal to press.
-
I have a small improvement: As the code is now, you can click the decimal-button after the equals(answer)-button and get a second decimal in the display - yielding an error. To remove this way of adding a second decimal, add a new variable called "int equalsClick;" in the top of the code. In the code for the clear button add: "equalsClick=0;" and in the equals-button code add: "equalsClick=1;". Finally in the decimal-button code replace the "if" code with "if(decimalClick==0 && equalsClick==0)"
-
thanx for the tutorials, its help me alot
-
+/- button works
use this code on button: plusminus = (Double.parseDouble(String.val
ueOf(display.getText()))); plusminus = plusminus*(-1); display.setText(String.valueOf
(plusminus)); -
not complete ¬¬
-
@mdumser mdumser im having trouble with the clear button
-
tnx much for this... ^_^ hope you can share more good application using netbeans... here is my email: act_fellado@yahoo.com
tnx much2x...
yeah its so helping and enjoyable. thank for video. but i think there should a tag on display cause we try to calculate a huge amount the numbers are out of display. is this possible to restrict display up to limited numbers??
waseemtus 8 months ago
yes
mdumser 4 months ago
sehr gutes Video mit lerneffekt!
das ein oder andere mal konnte man den Quellcode schlecht lesen aber ansonsten TOP!
drache01 2 years ago
Danke fuer den Kommentar. Du meinst bei Nummer Drei(?), ja da ging mir die Zeit aus um es wieder zumachen. :)
mdumser 2 years ago
good vids followed them through. really helpful thanks
- although just so u know sometimes u cannot see what u have written(took a bit of pausing just at the right moment :P), i think it happens in vid 3 most
Russ078188 3 years ago 3
I know, sorry about the video. Kinda new at it.
mdumser 2 years ago