import java.util.*;
import java.lang.Thread; public class TesteInfra implements Runnable{
public static void main(String
args[]){
TesteInfra ttt = new TesteInfra(); Thread sss = new Thread(ttt); sss.start(); } public void run(){
while(true) { try{ System.out.println("Teste");
Thread.sleep(100000); //deve ser informado o tempo em
milissegundos
} catch(InterruptedException ex){ System.out.println(ex.getMessage()); } } } }
|
- [java-list] Thread Ary Junior
- Re: [java-list] Thread Ana Emilia de Melo Queiroz
- [java-list] Thread Kleber Rodrigo de Carvalho
- Re: [java-list] Thread Sven van ´t Veer
- Re: [java-list] Thread PAULO HENRIQUE
- RES: [java-list] Thread Leandro Bitencourt
- [java-list] thread Ricardo
- [java-list] thread Johnatan
- Re: [java-list] thread paulo henrique castro
- [java-list] Thread Luiz Henrique Moraes
- [java-list] Thread Vanderlei Matos Andre
- Re: [java-list] Thread Fabio Pereira
- [java-list] Thread Vanderlei Matos Andre
- Re: [java-list] Thread Elvis
- [java-list] thread Marcelo Magno
- Re: [java-list] thread Rafael Correia
- Re: [java-list] thread Stenio de Lima Ferreira