Learn how to find the Smallest Missing Integer in an Array.
Search Results for: Search algorithm
Using indexOf to Find All Occurrences of a Word in a String
Learn how to solve the “needle in a haystack” problem by using the indexOf method to find all occurrences of a word in a larger text string.
Guide to the Java ArrayList
Quick and practical guide to ArrayList in Java
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.
SkipList Implementation in Java
A quick and practical guide to implementing SkipList in Java.
How to Check Number Perfection
This article explores perfect numbers and three methods to identify them: brute force, stream-based, and Euclid-Euler theorem.
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.
Find the First Non-repeating Element of a List
Learn a few approaches to finding the first non-repeating element in a list, each with its advantages and considerations.
Structured Logging in Java
Learn the advantages of and how to implement structured logging 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.
A Guide to Timefold Solver for Employee Scheduling
Learn how to use Timefold Solver, a planning optimization tool, to determine an optimal employee shift schedule.
Implement Connect 4 Game with Java
A quick and practical guide to implementing Connect 4 Game with Java.
Introduction to LangChain
Learn how to work with large language models in Java with LangChain.
Java Weekly, Issue 513
Starting to look forward towards Java 22. Good stuff is acoming.
Wrapping a String After a Number of Characters Word-Wise
Learn to wrap a sentence automatically after a given number of characters.
Rotate Arrays in Java
Learn how to rotate an array by k rotations with brute force and more complex algorithms like reverse or cyclic replacements.
Finding the Square Root of a BigInteger in Java
Learn three approaches to calculating the square root of a big number in Java.
Gradle Toolchains Support for JVM Projects
Explore the Gradle toolchains feature for JVM.
Different Dependency Version Declarations in Gradle
When building with gradle we may wish to stay on the latest version of each of our dependencies. We look at a few ways we can achieve this.
Find the Index of an Element in a Java Array
Learn various methods for finding the index of an array element using both Java’s built-in APIs and a third-party library.