-
Notifications
You must be signed in to change notification settings - Fork 30
/
ModulusAnimationWorm.java
45 lines (43 loc) · 1.44 KB
/
ModulusAnimationWorm.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
public class ModulusAnimationWorm
{
public static void main( String[] args ) throws Exception
{
System.out.println("Yo, this is intense!");
for ( int i=0; i<80; i++ )
{
if ( i%16 == 0 )
System.out.print(" ******** \r");
else if ( i%16 == 1 )
System.out.print(" ******** \r");
else if ( i%16 == 2 )
System.out.print(" ******** \r");
else if ( i%16 == 3 )
System.out.print(" ******** \r");
else if ( i%16 == 4 )
System.out.print(" ******** \r");
else if ( i%16 == 5 )
System.out.print(" ******** \r");
else if ( i%16 == 6 )
System.out.print(" ******** \r");
else if ( i%16 == 7 )
System.out.print(" ******** \r");
else if ( i%16 == 8 )
System.out.print(" ******** \r");
else if ( i%16 == 9 )
System.out.print(" ******** \r");
else if ( i%16 == 10 )
System.out.print(" ******** \r");
else if ( i%16 == 11 )
System.out.print(" ******** \r");
else if ( i%16 == 12 )
System.out.print(" ******** \r");
else if ( i%16 == 13 )
System.out.print(" ******** \r");
else if ( i%16 == 14 )
System.out.print(" ******** \r");
else if ( i%16 == 15 )
System.out.print(" ******** \r");
Thread.sleep(200);
}
}
}