-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModulusAnimationSymbols.java
More file actions
37 lines (34 loc) · 945 Bytes
/
Copy pathModulusAnimationSymbols.java
File metadata and controls
37 lines (34 loc) · 945 Bytes
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
public class ModulusAnimationSymbols
{
public static void main( String[] args ) throws Exception
{
int repeats = 5;
int steps_per_second = 10;
for ( int i=0; i<repeats*11 ; i++ )
{
if ( i%11 == 0 )
System.out.print(" .oOo..... \r");
else if ( i%11 == 1 )
System.out.print(" ..oOo.... \r");
else if ( i%11 == 2 )
System.out.print(" ...oOo... \r");
else if ( i%11 == 3 )
System.out.print(" ....oOo.. \r");
else if ( i%11 == 4 )
System.out.print(" .....oOo. \r");
else if ( i%11 == 5 )
System.out.print(" ......oOo \r");
else if ( i%11 == 6 )
System.out.print(" .......oO \r");
else if ( i%11 == 7 )
System.out.print(" o.......o \r");
else if ( i%11 == 8 )
System.out.print(" Oo....... \r");
else if ( i%11 == 9 )
System.out.print(" oOo...... \r");
else if ( i%11 == 10 )
System.out.print(" .oOo..... \r");
Thread.sleep(1000/steps_per_second);
}
}
}