title: Java compareTo for String and Integer arguments
body: <p>I am implementing the bubble sort algorithm and I want it to be able to accept both <code>Integer</code> and <code>String</code> parameters. I cast all input as Strings and use the <code>compareTo</code> method to compare the integers casted as strings to the strings. I am getting an incorrect answer when using <code>compareTo</code> to compare the casted integers. What am I doing wrong?</p>