import java.util.*; // class Words{ Words(){ makeWords(); } ArrayList words = new ArrayList(); ArrayList poem = new ArrayList(); ArrayList reversed = new ArrayList(); void makeWords(){ words.add("Build a tall castle."); words.add("on, to better adventures"); words.add("and higher hills to climb"); words.add("make haste, hurry"); words.add("thy heart dreams of"); words.add("castles and fairies"); words.add("high in the clouds"); words.add("and hidden in the mist"); words.add("fair, unreachable"); words.add("Rising above the smoke"); words.add("and shimmering in the sunlight"); words.add("reaching above the clouds"); words.add("upward higher and higher"); words.add("to the tops of the mountains"); words.add("the blue blaze of thev"); words.add("skies ;"); words.add("Listening and hoping"); words.add("to come closer to the"); words.add("voices coming "); words.add("in through"); words.add("the wailing of the wind in the"); words.add("upper reaches of the treetops, stirring the"); words.add("air, unsettling all."); words.add("Nor can we"); words.add("loose the sight of"); words.add("thy wonderful"); words.add("simple yearning and the"); words.add("faith in the goodness"); words.add("in the everlasting wonder of undending"); words.add("mysteries."); poem.add("Build on, and make thy castles high and fair,"); poem.add("Rising and reaching upward to the skies ;"); poem.add("Listening to voices in the upper air,"); poem.add("Nor loose thy simple faith in mysteries."); reversed.add("down."); reversed.add("goes "); reversed.add("sun "); reversed.add("the "); reversed.add("after "); reversed.add("rises "); reversed.add("That "); reversed.add("fog "); reversed.add("river "); reversed.add("the "); reversed.add("of "); reversed.add("damp "); reversed.add("the "); reversed.add("felt "); reversed.add( "And "); reversed.add("dog "); reversed.add("farmer's "); reversed.add("the "); reversed.add("of "); reversed.add("barking "); reversed.add("the "); reversed.add("And "); reversed.add("cock "); reversed.add("the "); reversed.add("of "); reversed.add("crowing "); reversed.add("the "); reversed.add("heard "); reversed.add("He"); /* "It was twelve by the village clock," + "When he crossed the bridge into Medford town." + "He heard the crowing of the cock," + "And the barking of the farmer's dog," + "And felt the damp of the river fog," + "That rises after the sun goes down."); */ } }