<<< Converting primitive types to/from String | Index | The BigDecimal class >>> |
Given string str1 and str2, you can compare them by
str1.compareTo( str2 )
There can be three possible outcomes of this comparison:
A negative result if str1 < str2
A zero if the strings are equal
A positive result if str1 > str2
<<< Converting primitive types to/from String | Index | The BigDecimal class >>> |