System.out.println ("Soy " + id + " y estoy comiendo por " + (new Integer(n)).toString ());
comidas_actuales++;
try {
- Thread.sleep (n);
+ Thread.sleep (n*1000);
} catch (Exception e) {}
finally {}
}
int n = r.nextInt (5) + r.nextInt (2);
System.out.println ("Soy " + id + " y estoy pensando por " + (new Integer(n)).toString ());
try {
- Thread.sleep (n);
+ Thread.sleep (n*1000);
} catch (Exception e) {}
finally {}
}