Annotations with Java are widely used with most of the popular frameworks. Put simply, annotations are a way to configure metadata for a class, attribute, or method. You will see annotations being used for dependency injection for example. Lombok...
When there is a tricky bug in a Java application, knowing how edge-case situations happen makes all the difference. That’s because bugs usually happen because of edge-case scenarios. In this challenge there is an edge-case coding situation, do...
To search for elements in your sorted array, you can use the binary search algorithm. Of course, you can get it for free in the Java language! Therefore, the point of this Java Challenge is to learn how to use the binarySearch method. Can you solve...
This Java Challenge will teach you how to intercept a method with Java. When you need to intercept a specific method for some reason, you can use the same technique of this Java Challenge! It’s useful this knowledge on your toolbelt! You can...
The ThreadLocal class is useful to store and read data without colliding with other Threads even if the ThreadLocal instance is the same. Therefore, it’s a useful class to keep in mind whenever you need to manipulate data and avoid thread...
Hello challenger, this Java Challenge is about constructors. By knowing it very well, you can create structured code where you construct an object in the best way as possible. Without further ado, let’s go to the challenge! That’s it...
It’s crucial to know how the equals and hashCode methods work because in Java we use them all the time. When working with frameworks, using Collections, or even when comparing objects equality. Therefore, if you are able to solve this Java...
Understanding the mechanics of the functional interface Predicate of a Stream is crucial if you want to create something meaningful with streams. On this challenge, we will explore important key methods when we work with a stream so that it becomes...
Using a tokenizer with regex is a useful concept to know that is existent in programming languages. Often enough we need to manipulate Strings in a more sophisticated way, sometimes we need to validate, or we just need to break them down. Therefore...
To manipulate data from a collection by using a stream is handy and cleaner. To learn how to use streams will make your Java code much better. To know how to limit to filter data with streams is crucial for you to do something useful with a stream...











