Split Paragraphs Java: i want first 50 words in one variable from string
<p>I have</p>

<pre><code>String explanation = "The image-search feature will start rolling out in the next few days, said Johanna Wright, a Google search director. "Every picture has a story, and we want to help you discover that story she said.";
</code></pre>

<p>there are total number of words are 300</p>

<p>In Java, how do I get the first 50 words from the string?</p>
