26 lines
613 B
Java
26 lines
613 B
Java
package Modelo;
|
|
|
|
|
|
|
|
/*
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
|
*/
|
|
|
|
/**
|
|
*
|
|
* @author Hp
|
|
*/
|
|
public class ImprimirAscii extends Thread {
|
|
|
|
public void run(char[][] lienzo, int ancho, int alto) throws InterruptedException {
|
|
for (int i = 0; i < alto; i++) {
|
|
for (int j = 0; j < ancho; j++) {
|
|
System.out.print(lienzo[i][j]);
|
|
}
|
|
Thread.sleep(1000);
|
|
System.out.println("");
|
|
}
|
|
}
|
|
}
|