Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ar;
- public class Menu {
- public static void main(String[] args) {
- System.out.println("============= Ejercicio 4 =============");
- Cuenta_Corriente cuenta= new Cuenta_Corriente();
- System.out.println("Cuenta Corriente Iniciada: "+cuenta.getSaldo());
- try {
- Thread.sleep(50);
- Deposit dsp= new Deposit(cuenta);
- dsp.start();
- Thread.sleep(100);
- Extrac extr= new Extrac(cuenta);
- extr.start();
- Thread.sleep(4000);
- System.out.println("El saldo es:"+ cuenta.getSaldo());
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- }
Add Comment
Please, Sign In to add comment