Im about ready to throw myself out of a window for this piece of work that i need to do. I need an array of English sentences. Which will list all those words from all the sentences that contain one or more character 'm'. Use an input dialog box to read the sentences into the array and an output dialog box to display the required words (7 words per line). The number of sentences will not exceed 5.
Now i *think* ive figured out that i need to use some of the following :
String [] array = new String[5];
Then im guessing i need to store the string in an array
array[0] = theInputSentenc e;
Then i need to somehow create a loop that checks the sentence for thats that have the letter 'm' in them.
But other then that my mind has come to an absolute standstill and its pretty damn annoying. Especially with the loop bit that will check for the 'm'.
Really startign to get worked up about it too
Now i *think* ive figured out that i need to use some of the following :
String [] array = new String[5];
Then im guessing i need to store the string in an array
array[0] = theInputSentenc e;
Then i need to somehow create a loop that checks the sentence for thats that have the letter 'm' in them.
But other then that my mind has come to an absolute standstill and its pretty damn annoying. Especially with the loop bit that will check for the 'm'.
Really startign to get worked up about it too
Comment