Introduction to JavaPoet 1. Overview In this tutorial, we’ll explore the basic functionalities of the JavaPoet library. JavaPoet is developed by Square, which provides APIs to generate Java source code. It can generate primitive types, reference types and their variants (such as classes, interfaces, enumerated types, anonymous inner classes), fields, methods, parameters,… Continue Reading java-poet

Calculate Percentage in Java 1. Introduction In this quick tutorial, we’re going to implement a CLI program to calculate percentage in Java. But first, let’s define how to calculate percentage mathematically. 2. Mathematical Formula In mathematics, a percentage is a number or ratio expressed as a fraction of 100. It’s often… Continue Reading java-calculate-percentage

Quicksort Algorithm Implementation in Java 1. Overview In this tutorial, we’ll explore the QuickSort algorithm in detail, focusing on its Java implementation. We’ll also discuss its advantages and disadvantages and then analyze its time complexity. 2. QuickSort Algorithm Quicksort is a sorting algorithm, which is leveraging the divide-and-conquer principle. It has… Continue Reading java-quicksort