singramsan89 wrote:I mean, except for that one line, this correctly returns the value of compareTo() for these two strings.
public class jk
public static void main(String  args)
String str1 = "Forest";
String str2 = "School";
str1.compareTo(str2); // <<< THIS LINE IS DOES NOT DO ANYTHING
int compare = str1.compareTo(str2);
It gave me -13...is this correct?