<T> cannot be resolved to a type
<p>I want to change the return type of this method to a class (<code>ReturnContainer</code>) that can hold the <code>tupelo</code> object in addition to another return value that I need to send back to the calling method.</p>

<p>I've never worked with this <code>&lt;T&gt;</code> concept in Java before so I don't how to reconfigure this method to work the way I need it to.</p>

<pre><code>public static &lt;T extends LocationCapable&gt; List&lt;T&gt; test(Class&lt;T&gt; incomingClass)
{
    List&lt;TestTuple&lt;T&gt;&gt; tupelo = new ArrayList&lt;TestTuple&lt;T&gt;&gt;();
    return tupelo;
}
</code></pre>

<p>When I try to change the code to the listing below, I get the error:</p>

<pre><code>T cannot be resolved to a type
</code></pre>

<p><strong>How can I have a return type of <code>ReturnContainer</code> but still allow the incomingClass to be a dynamic type?</strong></p>

<pre><code>public static ReturnContainer test(Class&lt;T&gt; incomingClass)
{
            List&lt;TestTuple&lt;T&gt;&gt; tupelo = new ArrayList&lt;TestTuple&lt;T&gt;&gt;();
            ReturnContainer rc = new ReturnContainer(tupelo, incomingClass);
    return rc;
}
</code></pre>
