Using MessageSource In Spring Boot Application

Overview Nowadays, creating applications that serve users from different countries with different languages and dialects is a common practice. How to make your application friendly to users across the globle? That’s what we are going to find out today. I18n and l10n Internationalization (i18n) is the process of designing your software ready to serve people … Read more

Working With Currency Data In Java

Overview Working with currency data in Java involves several key aspects: conversion rates, formatting, rounding, and arithmetic operations. This article will guide you through handling these aspects effectively in Java, ensuring accurate and reliable financial applications. Conversion Rates To handle currency conversion, you can use external APIs like the ExchangeRate-API. This API allows you to … Read more

Using FFMPEG in Java Cheat Sheet

Overview This cheat sheet contains code example that I use most frequently in my recent project that uses ffmpeg extensively to edit and create video. Let’s get started. Run ffmpeg in Java To run a ffmpeg command from Java, use the following function. Create a video from a single image with a duration To create … Read more

Understanding == and equals() in Java

Overview In Java, the == operator and the equals() method are both used to compare objects, but they serve different purposes and operate in fundamentally different ways. Stack, Heap, and References Before delving into the differences between == and equals, first, you need to understand what are references and how they are stored and used in Java. References and … Read more