Regarding two lines of java code
<p>I am trying to learn a java-based program, but I am pretty new to java. I am quite confusing on the following two lines of java code. I think my confusion comes from the concepts including “class” and “cast”, but just do not know how to analyze.</p>

<p>For this one</p>

<pre><code>XValidatingObjectCorpus&lt;Classified&lt;CharSequence&gt;&gt; corpus
        = new XValidatingObjectCorpus&lt;Classified&lt;CharSequence&gt;&gt;(numFolds);
</code></pre>

<p>What is <code>&lt;Classified&lt;CharSequence&gt;&gt;</code> used for in terms of Java programming? How to understand its relationships with <code>XValidatingObjectCorpus</code>and <code>corpus</code></p>

<p>For the second one</p>

<pre><code>LogisticRegressionClassifier&lt;CharSequence&gt; classifier
            = LogisticRegressionClassifier.&lt;CharSequence&gt;train(para1, para2, para3)
</code></pre>

<p>How to understand the right side of <code>LogisticRegressionClassifier.&lt;CharSequence&gt;train</code>? What is the difference between <code>LogisticRegressionClassifier.&lt;CharSequence&gt;train</code> and <code>LogisticRegressionClassifier&lt;CharSequence&gt; classifier
</code>?</p>
