Core Java
-
How to Use Pair With Java PriorityQueue
Java’s PriorityQueue is a data structure that allows us to store and retrieve elements in a specific order. This article…
Read More » -
assertEquals() vs. assertSame() in JUnit
JUnit is a widely used testing framework. Its API offers a straightforward approach to checking and comparing objects. However, the…
Read More » -
10 Pillars of Clean Java Code
In the ever-evolving world of software development, crafting clean Java code is an essential skill. Clean code goes beyond functionality;…
Read More » -
Helidon: A Modular Approach to Java Development
In the realm of Java development, monolithic applications are slowly becoming a relic of the past. The microservices architecture, with…
Read More » -
Handle Null Values In ArrayList.addAll()
The ArrayList class in Java is a commonly used data structure. One of its methods, addAll(), allows us to add…
Read More » -
Int to short Conversion in Java
When working with Java, we frequently face situations that require converting data types to meet specific needs. A common example…
Read More » -
Convert Float ArrayList to Primitive Array in Java
In Java, collections such as ArrayList<Float> are often used to store a dynamic list of objects. However, there might be…
Read More » -
Print Distinct Characters from a String in Java
In Java, there are multiple ways to print distinct characters from a string. This article will explore three approaches: using…
Read More » -
Compare Different Numeric Types in Java
Sometimes, we need to compare numbers regardless of their classes or types. This is particularly useful when the format is…
Read More »