String s = "apple";
String t = "orange";
if ( s.compareTo(t) < 0 )
   {
   out.println( "s < t" );
   }