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

Logging Fundamentals in Spring Boot

Introduction Logging is an essential aspect of software development, providing insights into what’s happening inside an application running in development or production. Effective logging practices help developers diagnose issues, understand application behavior, and improve performance. Spring Boot simplifies the logging process, allowing developers to focus more on building features rather than configuring logging infrastructure. This … Read more

Guide to The SOLID Principles In Java

Overview If you don’t have much time, this table captures the core of the SOLID principles: Principle Description Single Responsibility Principle (SRP) Clients should not be forced to depend on interfaces they do not use. This principle promotes the idea of small, focused interfaces instead of large, monolithic interfaces. Clients should only be exposed to … Read more