-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHokeyPokey(get verse)
29 lines (29 loc) · 1.11 KB
/
HokeyPokey(get verse)
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
/**
* ...
*/
public class HokeyPokeyGetVerse {
public static void main(String[] args) {
System.out.println( getVerse("right foot") + "\n"
+ getVerse("left foot") + "\n"
+ getVerse("right hand") + "\n"
+ getVerse("left hand") + "\n"
+ getVerse("nose") + "\n"
+ getVerse("backside") + "\n"
+ getVerse("head") + "\n"
+ getVerse("whole self") );
}
/** build a verse of the Hokey Pokey song for a given body
* part.
* * @param badyPart, a String
* @return a verse of the Hokey Pokey song for bodyPart
*/
public static String getVerse(String bodyPart) {
return "You put your " + bodyPart + " in,\n"
+ "you put your " + bodyPart + " out; \n"
+ "you put your " + bodyPart + " in, \n"
+ "and you shake it all about. \n"
+ "You do the Hokey Pokey,\n"
+ "and you turn yourself around.\n"
+ "That's what it's all about.\n";
}
}