Advertisement
Guest User

שם

a guest
Apr 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. ublic void suspendThread(){
  2. suspended=true;
  3. int price=0;
  4. price+=countpizza*20+countbeer*30+sec*1;
  5. sum+=price;
  6. JOptionPane.showMessageDialog(this,"price is "+price
  7. );
  8.  
  9. count=0;
  10. countpizza=0;
  11. countbeer=0;
  12. text.setText("");
  13.  
  14. }
  15. public synchronized void resumeThread(){
  16. suspended=false;
  17. notify();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement