Java - First letter of every word in a string <p>I am trying to write a program to assist in memorizing long paragraphs of text, and I am stuck. I am trying to write a method that, when passed a string, will return a string that contains just the first letters of the words in the string, plus newlines and punctuation. Any help?</p> <p>Example:</p> <p>This is a test sentence, that has a newline\n and some punctuation.</p> <p>T i a t s, t h a n</p> <p>a s p.</p>