Comparing strings by their alphabetical order
<p>Good afternoon </p>

<pre><code>String s1 = "Project";
String s2 = "Sunject";
</code></pre>

<p>I want to compare above string by their alphabetic order which in this case "Project" will be true as "P" comes before "S" .</p>

<p>Does anyknow how would you do that in Java?</p>

<p>thanks</p>
