Clase Thread - docencia de la ETSIT-URJC
Clase Thread - docencia de la ETSIT-URJC
Clase Thread - docencia de la ETSIT-URJC
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Cuidado con start() y run()!<br />
public c<strong>la</strong>ss Prueba {<br />
public static void main( String[] args ) {<br />
Nombre n1 = new Nombre ( "Jaime" );<br />
Nombre n2 = new Nombre ( " Lo<strong>la</strong>" );<br />
n1.run();<br />
n2.run();<br />
}<br />
}<br />
public c<strong>la</strong>ss Prueba {<br />
public static void main( String[] args ) {<br />
Nombre n1 = new Nombre ( "Jaime" );<br />
Nombre n2 = new Nombre ( " Lo<strong>la</strong>" );<br />
n1.start();<br />
n2.start();<br />
}<br />
}