Monkey Monkey Monkey
???
class MonkeyLoop {
String [][] monkeys;
String [][] words;
public MonkeyLoop() {
words = new String[][]{
{"Five little monkeys jumping on the bed,",
"One fell down and bumped his head,",
"Mama called the doctor and the doctor said,",
"No more monkeys jumping on the bed!"},
{"Four little monkeys jumping on the bed,",
"One fell down and bumped his head,",
"Mama called the doctor and the doctor said,",
"No more monkeys jumping on the bed!"},
{"Three little monkeys jumping on the bed,",
"One fell down and bumped her head,",
"Mama called the doctor and the doctor said,",
"No more monkeys jumping on the bed!"},
{"Two little monkeys jumping on the bed,",
"One fell down and bumped his head,",
"Mama called the doctor and the doctor said,",
"No more monkeys jumping on the bed!"},
{"One little monkey jumping on the bed,",
"She fell down and bumped her head,",
"Mama called the doctor and the doctor said,",
"Put those monkeys back to bed!"}
};
monkeys = new String[][]{
{
"ʕง ͠° ͟ل͜ ͡°)ʔ ",
" \\_⏄_/ ",
" -Ben- ",
" ⎛ ⎞ "
},
{
" ʕ༼ ◕_◕ ༽ʔ",
" \\_⎏_/ ",
" +Glen+ ",
" ⌋ ⌊ "
},
{
" ʕ(▀ ⍡ ▀)ʔ",
" \\_⎐_/ ",
" <Sven> ",
" 〈 〉 "
},
{
"ʕ ͡° ͜ʖ ° ͡ʔ",
" \\_⍾_/ ",
" =Rem= ",
" _/ \\_ "
},
{
" (◕‿◕✿) ",
" \\_⍾_/ ",
" =When= ",
" _/ \\_ "
},
};
}
public void printPoem() {
System.out.println();
System.out.println("Monkey Jumpers Poem in Java Loopy");
System.out.println();
int monkeyCount = monkeys.length;
for (int i = monkeyCount; i >= 1; i--)
{
for(int wordcol = 0; wordcol < 3; wordcol++) {
System.out.println(words[5-i][wordcol] + "");
}
for (int col = 0; col < monkeys[col].length; col++) { //cycles through each row of the monkeys
/*cycles through rows to print
each monkey's part by part, will eventually print entire row*/
for (int row = 0; row < monkeyCount; row++) {
// prints specific part of the monkey from the column
System.out.print(monkeys[row][col] + " ");
System.out.print("\t");
}
System.out.println();
}
System.out.println();
monkeyCount -= 1;
}
System.out.println("No more monkeys jumping on the bed");
System.out.println("0000000000000000000000000000000000");
System.out.println(" THE END ");
}
public static void main(String[] args) {
new MonkeyLoop().printPoem();
}
}
MonkeyLoop.main(null);