Sorting Text in Java, How Complicated Can It Be?
Sorting text should be easy as String implements the Comparable interface. In this article, we’ll see that it can be more complicated than that. Text is represented by the String class in Java. In this article we’ll explore how to sort String, the advantages and drawbacks of each possibility. Level 1: Comparable The class String implements Comparable so sorting a …
Read More »