-
Core Java
How to write JSON to a file using Moshi
Moshi is a modern JSON library for Android and Java, providing a simple API for parsing and serializing JSON. Let…
Read More » -
Core Java
How to pretty print JSON using Moshi
JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write, and easy…
Read More » -
Core Java
Get First and Last Day of Week, Month or Year in Java
The introduction of the Date and Time API in Java 8 brought a significant improvement to how dates and times…
Read More » -
Core Java
Filter a Map by Keys and Values using Java Stream
Discover how to filter a Map by keys, values, or both using Java 8’s Stream API with the filter() and…
Read More » -
Core Java
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 » -
Core Java
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 » -
Core Java
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 » -
Enterprise Java
PostgreSQL – Indexes
Indexes in PostgreSQL are data structures used to improve the speed of data retrieval operations on database tables. They work…
Read More »