Biblioteca Java - Blame information for rev 27
Subversion Repositories:
Rev | Author | Line No. | Line |
---|---|---|---|
27 | mihai | 1 | package ex1_airport; |
2 | public class Main2 { | ||
3 | |||
4 | |||
5 | private static void sleep(int millisecs) { | ||
6 | try { | ||
7 | Thread.sleep(millisecs); | ||
8 | } catch (InterruptedException e) { | ||
9 | System.err.println(e.getMessage()); | ||
10 | } | ||
11 | } | ||
12 | |||
13 | public static void main(String [] args) { | ||
14 | HighLevelDisplay d = new JDisplay2(); | ||
15 | |||
16 | for(int i=0; i < 20; i++) { | ||
17 | d.addRow("AAAAAAAAAAAA "+i); | ||
18 | d.addRow("BBBBBBBBBBBB "+i); | ||
19 | sleep(500); | ||
20 | d.deleteRow(0); | ||
21 | sleep(500); | ||
22 | } | ||
23 | |||
24 | } | ||
25 | } |