Biblioteca Java - Rev 27
Subversion Repositories:
package ex1_airport;
public class Main2 {
private static void sleep(int millisecs) {
try {
Thread.sleep(millisecs);
} catch (InterruptedException e) {
System.err.println(e.getMessage());
}
}
public static void main(String [] args) {
HighLevelDisplay d = new JDisplay2();
for(int i=0; i < 20; i++) {
d.addRow("AAAAAAAAAAAA "+i);
d.addRow("BBBBBBBBBBBB "+i);
sleep(500);
d.deleteRow(0);
sleep(500);
}
}
}
public class Main2 {
private static void sleep(int millisecs) {
try {
Thread.sleep(millisecs);
} catch (InterruptedException e) {
System.err.println(e.getMessage());
}
}
public static void main(String [] args) {
HighLevelDisplay d = new JDisplay2();
for(int i=0; i < 20; i++) {
d.addRow("AAAAAAAAAAAA "+i);
d.addRow("BBBBBBBBBBBB "+i);
sleep(500);
d.deleteRow(0);
sleep(500);
}
}
}