public class NoHilo{
    String nombre;
    double retardo; // Segundos que tarda en hacerse
    public void corre(){
        for (int i=0;i<10;i++){
            System.out.print(nombre);
            try{
                Thread.sleep ((int)(retardo*1000));
            }catch (Exception e){
            }
        }
    }
}