5.12 Further Reading
For more information, take a look at the API documentation of the String, StringBuilder, Scanner and Formatter classes and also explore regular expressions ( Pattern and Matcher classes), which can be used to elegantly answer questions about matching as well as about the position of substrings.
When large amounts of data are processed as strings, the question of optimization is quite relevant. The default implementation of the JDK only uses a simple search algorithm, which is rather inefficient for large patterns and search strings. In the field of search algorithms, however, computer science has produced interesting approaches in recent decades, for example, the optimal mismatch algorithm. However, the complete ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access