Discover different full-text search algorithms implemented using plain Java.
Search Results for: String algorithm
Find the Length of the Longest Symmetric Substring
Learn how to handle the symmetric substring expansion methods, taking into account the specific requirements such as input size and computational efficiency.
Blowfish Encryption Algorithm
Learn how to implement encryption and decryption using Blowfish ciphers with the Java Cryptography Architecture (JCA).
Check if Two Strings Are Rotations of Each Other
Learn multiple algorithms to check whether a string is a rotation of another string including examples and complexity analysis.
Check if a String Is Equal to Its Mirror Reflection
Learn how to check if a String is its own mirror image in Java.
Remove Characters From a String That Are in the Other String
Explore three approaches to removing characters from one string if they’re present in another.
Rotating a Java String By n Characters
Explore two different approaches to rotating a string by n characters.
Create a “Mutable” String in Java
Learn about mutable Strings and ways of mutating a String.
Wrapping a String After a Number of Characters Word-Wise
Learn to wrap a sentence automatically after a given number of characters.
Hex Representation of a SHA-1 Digest of a String in Java
Learn three different ways to generate the hex representation of a SHA-1 digest of a string in Java.
Find the Most Frequent Characters in a String
Learn three approaches to finding the most frequent characters in a string, with examples.
Generate the Same UUID From a String in Java
Learn how to generate the same UUID objects from a string.
Find the First Embedded Occurrence of an Integer in a Java String
Learn different techniques to extract the first embedded integer from a String.
Find the First Non Repeating Character in a String in Java
Explore different approaches to finding the first non-repeating character in a string.
Algorithm to Identify and Validate a Credit Card Number
Learn techniques to identify credit cards by their issuer, and algorithms to ensure the validity of the credit card.
Permutations of a String in Java
Learn how we to easily create permutations in Java using third-party libraries.
Generating a Java String of N Repeated Characters
Producing a string out of repeating a character or sequence can be done a variety of ways. We look at a few methods, and compare them for readability and efficiency.
Ignoring Commas in Quotes When Splitting a Comma-separated String
Learn various approaches for ignoring commas in quotes when splitting a comma-separated String.
Check if the First Letter of a String Is Uppercase
Explore different solutions for checking if the first letter is uppercase.
Remove Accents and Diacritics From a String in Java
This article explains what Unicode text normalization is, how to remove accents and diacritical marks in text, and the pitfalls to watch out for.