Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tp05;
- public class CajaDeAhorro {
- public static void main(String[] args) {
- RegionCritica cuenta = new RegionCritica();
- HiloD d = new HiloD();
- HiloE e = new HiloE();
- d.start();
- e.start();
- try {
- Thread.sleep(8000);
- } catch (InterruptedException e2) {}
- System.out.println("\nSALDO TOTAL : "+cuenta.GetContador());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement