![University CS Major - Intro to Java] I thought compareTo() compared the lengths of strings, not the alphabetical order. This is an exercise my professor gave us to help us prep for University CS Major - Intro to Java] I thought compareTo() compared the lengths of strings, not the alphabetical order. This is an exercise my professor gave us to help us prep for](https://preview.redd.it/university-cs-major-intro-to-java-i-thought-compareto-v0-voz3ywurbit91.png?auto=webp&s=3e4ee2f346fa3592b4bffdabde627e8e43821bf1)
University CS Major - Intro to Java] I thought compareTo() compared the lengths of strings, not the alphabetical order. This is an exercise my professor gave us to help us prep for
![sorting - java - how to make generic function that sorts alphabetically a collection - Stack Overflow sorting - java - how to make generic function that sorts alphabetically a collection - Stack Overflow](https://i.stack.imgur.com/hMlcB.png)
sorting - java - how to make generic function that sorts alphabetically a collection - Stack Overflow
![Java code to arrange the letters of a word in alphabetical order | Coders Hub: Android Code Examples and Programming Tutorials Java code to arrange the letters of a word in alphabetical order | Coders Hub: Android Code Examples and Programming Tutorials](http://1.bp.blogspot.com/-hhTTfMNkTF8/VR--xY3zByI/AAAAAAAAA_w/EB4rmhPeWIM/s1600/Java%2Bcode%2Bto%2Barrange%2Bstring%2Balphabatically.png)
Java code to arrange the letters of a word in alphabetical order | Coders Hub: Android Code Examples and Programming Tutorials
![Java67: How to check if two String variables are same in Java? equals(), equalsIgnoreCase() and == operator Example Java67: How to check if two String variables are same in Java? equals(), equalsIgnoreCase() and == operator Example](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPt-noEVNff44pILh6ti8AdqcZjOAFYqyAhIP6fLn1azJVe0uyofMRjBLxFXoH6Ip_4u4OfB-WvftBn3zjtulEyHokB2VK2IWi4TQT5o724p3Z_HnMhRKzZIUqjRVOpVn-cLExi5rAvzVJuP5iawA1L--l6YMna536pXpOyTtE-Px4efn6emzEszWF/w1200-h630-p-k-no-nu/equals%20vs%20equality%20operator%20in%20Java.png)