Instructions
Recite the lyrics to that popular children's repetitive song: Ten Green Bottles.
Note that not all verses are identical.
My code:
String recite(int startBottles, int takeDown) {
String [] bottles = {"Ten green bottles hanging on the wall,\n" +
"Ten green bottles hanging on the wall,\n" +
"And if one green bottle should accidentally fall,\n" +
"There'll be nine green bottles hanging on the wall.\n", "Three green bottles hanging on the wall,\n" +
"Three green bottles hanging on the wall,\n" +
"And if one green bottle should accidentally fall,\n" +
"There'll be two green bottles hanging on the wall.\n"};
return bottles[0];
}
}```
It has 7 tests just 1 was solved, what method should I use? to solve this