Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ublic void suspendThread(){
- suspended=true;
- int price=0;
- price+=countpizza*20+countbeer*30+sec*1;
- sum+=price;
- JOptionPane.showMessageDialog(this,"price is "+price
- );
- count=0;
- countpizza=0;
- countbeer=0;
- text.setText("");
- }
- public synchronized void resumeThread(){
- suspended=false;
- notify();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement