Changing the signature of one method
<p>So I have the following method </p>

<pre><code>public static &lt;T extends Comparable&lt;? super T&gt;&gt; void bubbleSort( T[] a)
//public static void bubbleSort(Comparable[] a)
{
    for(int top = a.length-1; top &gt; 0; top--)
        for(int i = 0; i &lt; top; i++)
            if(a[i+1].compareTo(a[i]) &lt; 0)
            {   T tmp = a[i];

                //Comparabl tmp = a[i];
                a[i] = a[i+1];
                a[i+1] = tmp;
            }
}
</code></pre>

<p>How do I change the method signature in order to be able to call it from something like</p>

<pre><code>public int sortByTitle()
{
    return Sorting.bubbleSort(lib); // (lib is  lib = new ArrayList&lt;Object&gt;();
}
</code></pre>

<p>I must not use collection methods or comparator object.</p>
