Friday, October 28, 2011

Java: Compare



class compare
{//this coment line
public static void main(String[] args)
{
    String s = "Shahana";
    String s1 = "shahana";
    int ss = s.compareTo(s1);
    System.out.println(ss);
}//end of main
}// end of class compare

Post a Comment