-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOverlyComplexFlag.java
65 lines (53 loc) · 1.39 KB
/
OverlyComplexFlag.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import static java.lang.System.*;
public class OverlyComplexFlag {
public static void main( String[] args ) {
printTopHalf();
print48Colons();
print48Ohs();
print48Colons();
print48Ohs();
print48Colons();
print48Ohs();
printPledge();
}
public static void print48Colons () {
out.println( "|::::::::::::::::::::::::::::::::::::::::::::::::|");
}
public static void print48Ohs() {
out.println( "|OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO|");
}
public static void print29Colons() {
out.println( "|:::::::::::::::::::::::::::::|");
}
public static void printPledge() {
out.println( "|I pledge allegiance to the flag." );
}
public static void print29Ohs() {
out.println( "|OOOOOOOOOOOOOOOOOOOOOOOOOOOOO|" );
}
public static void print6Stars() {
out.print( "| * * * * * * ") ;
}
public static void print5Stars() {
out.print( "| * * * * * ") ;
}
public static void printSixStarLine() {
print6Stars();
print29Ohs();
}
public static void printFiveStarLine() {
print5Stars();
print29Colons();
}
public static void printTopHalf() {
out.println( " ________________________________________________");
// the line above has 1 space then 48 underscores between the quotes
printSixStarLine();
printFiveStarLine();
printSixStarLine();
printFiveStarLine();
printSixStarLine();
printFiveStarLine();
printSixStarLine();
}
}