void main() {
String str1 = "A";
String str2 = "A";
String str3 = "B";
print("str1.compareTo(str2): ${str1.compareTo(str2)}");
print("str1.compareTo(str3): ${str1.compareTo(str3)}");
print("str3.compareTo(str2): ${str3.compareTo(str2)}");
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266141.html