article, noun, verb, preposition, article, noun
As each word is picked, concatenate it to the previous words in the sentence. The words should be separated by spaces. When the final sentence is output, it should start with a capital letter and end with a period. The application should generate 20 sentences and output them to a text area.
I've started this for you in the file Sentences.java. Download this file and complete it by writing the makeSentence() method. Note that you are completing this task by putting together a sentence into a single string to return, NOT by printing things out word by word.
Programming Exercise: 'Sentences' Any boy drove from one town. The girl jumped on the boy. One dog ran over some girl. One dog walked to any town. Some girl drove to any car. Any town drove under one dog. Some dog ran under any girl. Any boy jumped over one girl. Any girl walked on one boy. Some town jumped on one car. Some town walked under a girl. A boy jumped over one boy. Some dog skipped from one car. Some boy drove to any town. The boy skipped on the car. Some dog drove under some dog. A car skipped over a girl. A dog skipped over any boy. Some car skipped under one girl. One dog drove on any dog.