-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSong.java
More file actions
109 lines (90 loc) · 1.72 KB
/
Copy pathSong.java
File metadata and controls
109 lines (90 loc) · 1.72 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
public class Song
{
public static void main(String[] args)
{
verseOne();
System.out.println();
verseTwo();
System.out.println();
verseThree();
System.out.println();
verseFour();
System.out.println();
verseFive();
System.out.println();
verseSix();
System.out.println();
}
public static void lineOne()
{
System.out.println("Bought me a cat and the cat pleased me,");
}
public static void lineTwo()
{
System.out.println("I fed my cat under yonder tree.");
}
public static void lineThree()
{
System.out.println("Cat goes fiddle-i-fee.");
}
public static void verseOne()
{
lineOne();
lineTwo();
lineThree();
}
public static void lineFour()
{
System.out.println("Hen goes chimmy-chuck, chimmy-chuck,");
}
public static void verseTwo()
{
lineOne();
lineTwo();
lineFour();
lineThree();
}
public static void lineFive()
{
System.out.println("Duck goes quack, quack,");
}
public static void verseThree()
{
lineOne();
lineTwo();
lineFive();
lineFour();
lineThree();
}
public static void lineSix()
{
System.out.println("Goose goes hissy, hissy,");
}
public static void verseFour()
{
lineOne();
lineTwo();
lineSix();
lineFive();
lineFour();
lineThree();
}
public static void lineSeven()
{
System.out.println("Sheep goes baa, baa,");
}
public static void verseFive()
{
lineOne();
lineTwo();
lineSeven();
lineSix();
lineFive();
lineFour();
lineThree();
}
public static void verseSix()
{
System.out.println("I wanted to make this as neat as possible,\nbut there are a lot of functions.");
}
}