� necess�rio que voc� implemente a sua thread: Estendendo Thread ou
implementando Runnable
class MyThread implements Runnable {
public void run() {
System.out.println("thread iniciada....");
for (int i = 0; i < 5000; i++) {
System.out.println(i);
}
}
public static void main(String[] args) {
MyThread runner = new MyThread();
Thread t = new Thread(runner);
t.start();
}
}
Claudio Miranda
falaqeufalo wrote:
>
> Bom dia,
> Bem gostaria de saber como posso trabalhar com com o
> m�todo start() do objeto Thread?
>
> Ex
>
> bpcs.start();
> //E depois executar esse outro...
> mat.start();
>
> Valeu galera!!!!
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
------------------------------ LISTA SOUJAVA ----------------------------
http://www.soujava.org.br - Sociedade de Usu�rios Java da Sucesu-SP
d�vidas mais comuns: http://www.soujava.org.br/faq.htm
regras da lista: http://www.soujava.org.br/regras.htm
para sair da lista: envie email para [EMAIL PROTECTED]
-------------------------------------------------------------------------