-
Core Java
Mapping Enums and Strings with MapStruct
MapStruct is a Java annotation processor that streamlines the implementation of mappings between Java beans, including complex scenarios such as…
Read More » -
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 » -
Core Java
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 » -
Core Java
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 » -
Core Java
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 » -
Core Java
How to Traverse All Files from a Folder in Java
Traversing all files in a folder is a common task in Java, whether you need to read files, filter them…
Read More » -
Core Java
Gson Support for Java 8 Date-Time Types
Java 8 introduced a robust date and time API with classes such as LocalDate, LocalDateTime, and ZonedDateTime. These classes provide…
Read More » -
Core Java
How to exclude fields in Gson
Google Gson is a library for serializing and deserializing Java objects to and from JSON. Sometimes, it is necessary to…
Read More »