Advertisement
Guest User

Untitled

a guest
Jun 25th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. if ("C".equals(arg)){
  2. wert1 =0.0d;
  3. rechenOperator = "";
  4. wert2 = 0.0d;
  5. text.setText("0");
  6. isFix = true;
  7. } else if (("0".equals(arg)) | ("1".equals(arg)) | ("2".equals(arg))
  8. | ("3".equals(arg)) | ("4".equals(arg)) | ("5".equals(arg)) | ("6".equals(arg)) | ("7".equals(arg)) | ("8".equals(arg)) | ("9".equals(arg)) | (".".equals(arg))){
  9. if (isFix){
  10. sText2 = (String) arg;
  11. } else {
  12. sText2 = text.getText() + arg;
  13. } text.setText(sText2);
  14. isFix = false;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement