Thank you to all compagnios, now is working fine. From: [email protected] To: [email protected] Subject: Problem Runnable Date: Sat, 9 May 2009 19:27:36 +0200 Hello agains friend, i do the exercise runnable, but when run the main, nothing happens, some body knows what is the problems????. Thank you. package MyMain; import java.util.Calendar; import java.util.Date; /** * * @author Mio */ public class MyCurrentDate implements Runnable { Date time; Thread thread; String tim; public MyCurrentDate(){ time = Calendar.getInstance().getTime(); tim = time.toString(); thread = new Thread(this.tim); thread.start(); } public void run() { String timo= thread.getName(); for (int i = 0; i < 10; i++) { System.out.println(timo); } } } ¿Eres del Madrid, del Barça, del Atleti...? Apoya a tu equipo en la Zona Fan de MSN Deportes El nuevo Windows Live tiene mucho que ofrecerte. Descúbrelo en estos vídeos _________________________________________________________________ ¡Quítate unos clics! Ahora, Internet Explorer 8 tiene todo lo que te gusta de Windows Live ¡Consíguelo gratis! http://ie8.msn.com/microsoft/internet-explorer-8/es-es/ie8.aspx --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
