ae pessoal pq o main so eh alcançado uma unica vez?
class Susp implements Runnable{
public void run(){
for(int x=0;x<4;x++){
System.out.println(Thread.currentThread().getName());
try{
Thread.sleep(1000);
}catch(InterruptedException ex){}
}
}
public static void main(String args[]){
Susp sp = new Susp();
Thread t = new Thread(sp);
t.setName("Camilo");
Thread t1 = new Thread(sp);
t1.setName("neto");
t.start();
System.out.println(Thread.currentThread().getName());
t1.start();
}
}
:?: eu achava q ele seria exibido alternadamente…