split file sentences into words
<p>can anyone help me please?</p>

<p>I'm trying to split the <code>sentences[]</code> into <code>words[]</code>. But  it shows <code>Syntax error on token "j", delete this token</code>... </p>

<p>My code is:</p>

<pre><code>try
{
    int j;
    String paragraph = sample.readFileString(f);
    String[] sentences = paragraph.split("[\\.\\!\\?]");
    for (int i=0;i&lt;sentences.length;i++)
    {  
        System.out.println(i);
        System.out.println(sentences[i]);  
        for( j=0;j&lt;=i;j++)
        {
            String  word[j]=sentences[i].split(" ");
        }
    }
}   
</code></pre>

<p>What can I do?</p>
