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 » -

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 » -

Read and Write JSON to File with GSON
1. Introduction Using GSON to read and write json to file is easy with the fromJson and toJson APIs. GSON…
Read More » -

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 » -

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 » -

Project Valhalla: Boosting Microservices with the Future of Java
The microservices architecture has become a cornerstone of modern software development, offering agility, scalability, and ease of maintenance. However, traditional…
Read More » -

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 » -

Custom Field Name with @JsonProperty
1. Introduction Custom field name with @JsonProperty is very useful when mapping Java fields to JavaScript Object Notation (JSON) properties…
Read More » -

Custom Field Names with @SerializedName in Gson
Gson is a popular Java library for converting Java objects to their JSON representation and vice versa. One of the…
Read More »

