compreTo() method in java is not working : In java if
s1 = "d";
s2 = "D"

System.out.println(s1.compareTo(s2));

It will give output 32 always no matter what alphabet you use if they are same i.e. one is capital and one is smaller.

Why is this so???