Quería poner algun tipo de código que dijera algo inteligente y eso, pero como no tengo ni idea, te pongo un gato en una tarta y te felicito. ¡Felicidades zant!
¡Feliz cumpleaños zant!
Moderadores: SGM, Moderador, GM
[html]<iframe frameborder="0" src="https://itch.io/embed/273009?linkback=true" width="552" height="167"></iframe>[/html]
- robertoccu
- VIP
- Mensajes: 11362
- Registrado: 30 May 2011, 01:05
- Ubicación: Aragón
- Nick Minecraft: robertoccu
Felicidades zant!
- maxmadness59
- Superviviente
- Mensajes: 79
- Registrado: 11 Sep 2012, 13:48
Tu querido cerdo del Rust te desearía un feliz cumpleaños...
Pero no lo hace porque lo masacraste a sangre fría cuando él estaba dispuesto a darte todo su amor y fidelidad.
Él confiaba en ti.
Feliz cumpleaños, monstruo.
Jajaja, gracias chicos
- Eterdragon
- Superviviente
- Mensajes: 1496
- Registrado: 30 Ago 2011, 21:31
- Nick Minecraft: AetherLiger
SA
javiertarifa escribió:feliz día de San Lorenzo a todos
Zant Lolencio =D
Felicidades Zant!
"Zero" is the past, "One" is the future, "the present" is nowhere to be found.<br /><br />"Los dragones se acercan" -Aether-
Código: Seleccionar todo
import java.util.Calendar;
import java.util.Random;
public class SimulateWorld {
final static long MAX_PERSONS = 1000000000;
public static void main(String[] args) {
for (int i = 0; i < 7; i++) {
for (int j = 0; j < MAX_PERSONS; j++) {
new Person("Person" + i + j).start();
}
}
}
}
class Person extends Thread {
int age, lastYear;
String name;
public Person(String name) {
this.age = 0;
this.name = name;
System.out.println("Welcome " + name + " to this world.");
}
@Override
public void run() {
super.run();
while (true) {
if (Calendar.getInstance().get(Calendar.YEAR) == this.lastYear + 1) {
this.lastYear = Calendar.getInstance().get(Calendar.YEAR);
this.age++;
System.out.println(this.name
+ " just grow 1 year more, actual years: " + this.age);
}
if (new Random().nextDouble() > 0.90)
die();
}
}
private void die() {
this.stop();
}
}
maxmadness59 escribió:Tu querido cerdo del Rust te desearía un feliz cumpleaños...
Pero no lo hace porque lo masacraste a sangre fría cuando él estaba dispuesto a darte todo su amor y fidelidad.
Él confiaba en ti.
Feliz cumpleaños, monstruo.
Datzu escribió:Código: Seleccionar todo
/* * Cosas */
Muy bueno Datzu, jajaja.
JanoZero escribió:ya te dí tu regalo, feliz cumpleaños enfermo de la programación.
Gracias Jano, me ha encantado
maxmadness59 escribió:Tu querido cerdo del Rust te desearía un feliz cumpleaños...
Ese cerdo lo iba pidiendo con esos andares tan... tan... de cerdo D: