Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*IN JAVA* Using the arrayLists given below, write a Syllable method that pulls from each arrayList and puts them in another list based on how

*IN JAVA* Using the arrayLists given below, write a Syllable method that pulls from each arrayList and puts them in another list based on how many syllables are in that word/words. Then create another method that writes Haikus called Haiku based on the number of syllables determined by the Syllable method created previously. Each Haiku that is created should be its own object. Finally, allow for user input to put in how many Haikus they wish to be made. Then call the objects and add them to an arrayList. Make sure each Haiku is separated from one another and that each Haiku consists of three lines with the first line containing 5 syllables and the second line with 7 syllables, and the third line having 5 syllables.
ArrayList pondList = new ArrayList();
pondList.add("small pond");
pondList.add("stagnant pond");
pondList.add("roval pond");
pondList.add("stumpy pond");
pondList.add("shallow pond");
pondList.add("flat pond");
pondList.add("muddy pond");
pondList.add("green pond");
pondList.add("blue pond");
pondList.add("pristine pond");
pondList.add("sylvan pond");
pondList.add("happier pond");
pondList.add("immense pond");
pondList.add("deep pond");
pondList.add("clear pond");
pondList.add("grand pond");
pondList.add("large pond");
pondList.add("icy pond");
pondList.add("smaller pond");
pondList.add("tamer pond");
pondList.add("enticing pond");
ArrayList flowerList = new ArrayList();
flowerList.add("attention getting flower");
flowerList.add("bloom flower");
flowerList.add("lofty flower");
flowerList.add("airy flower");
flowerList.add("flower petals");
flowerList.add("flower thorns");
flowerList.add("abundant flowers");
flowerList.add("floral flower");
flowerList.add("succulent flower");
flowerList.add("sensual flower");
flowerList.add("colorful flower");
flowerList.add("ephemeral flower");
flowerList.add("idyllic flower");
flowerList.add("dainty flower");
flowerList.add("flower garden");
flowerList.add("flower field ");
ArrayList animalList = new ArrayList();
animalList.add("squirrel");
animalList.add("koi");
animalList.add("frog");
animalList.add("fluffy");
animalList.add("green");
animalList.add("carp");
animalList.add("orange");
animalList.add("tadpole");
animalList.add("screamapillar");
animalList.add("robin");
animalList.add("red breast");
animalList.add("black");

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

=+1. Of what is the value chain in the music industry composed?

Answered: 1 week ago