Advertisement
FacundoCruz

CajaDeAhorro

May 12th, 2022
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. package tp05;
  2.  
  3. public class CajaDeAhorro {
  4.  
  5. public static void main(String[] args) {
  6.  
  7. RegionCritica cuenta = new RegionCritica();
  8.  
  9. HiloD d = new HiloD();
  10.  
  11. HiloE e = new HiloE();
  12.  
  13. d.start();
  14. e.start();
  15.  
  16. try {
  17. Thread.sleep(8000);
  18. } catch (InterruptedException e2) {}
  19.  
  20. System.out.println("\nSALDO TOTAL : "+cuenta.GetContador());
  21. }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement