SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

TEXT PACKAGE / NOTES</>↗
Text Package02 Aug 2025

How to Format Dates with SimpleDateFormat

You can format dates in Java using the SimpleDateFormat class, which is part of the java.text package. This class allows you to specify patterns describing the formatting and parsing of date and time objects. Here’s a step-by-step guide: Example of Formatting Dates with SimpleDateFormat package org.kodejava.text; import java.text.SimpleDateFormat; import java.util.Date; public class DateFormatExample { public […]

Wayan · 2 min read
UTIL PACKAGE / NOTES</>↗
Util Package01 Aug 2025

How to Use Locale for Internationalization

Internationalization (i18n) involves designing applications so that they can be adapted to different languages, regions, and cultures. In Java, the Locale class is a fundamental part of i18n. It represents a specific geographical, political, or cultural region and is used in conjunction with various APIs to format dates, numbers, and text according to a specific […]

Wayan · 4 min read
LANG PACKAGE / NOTES</>↗
Lang Package31 Jul 2025

How to Use System.currentTimeMillis() for Performance Timing

In Java, System.currentTimeMillis() is commonly used as a simple way to measure the execution time of a block of code or a specific operation in terms of milliseconds. Here’s how you can effectively use it for performance timing: Example Usage package org.kodejava.lang; public class PerformanceTimingExample { public static void main(String[] args) { // Record the […]

Wayan · 3 min read
UTIL PACKAGE / NOTES</>↗
Util Package30 Jul 2025

How to Use Objects.requireNonNull() Effectively

The Objects.requireNonNull() method is a utility provided in Java to enforce that an object is not null during runtime. It is part of the java.util.Objects class starting from Java 7 and is commonly used for validating method parameters, ensuring that null values don’t propagate and cause unexpected NullPointerExceptions later. Here’s a detailed explanation of how […]

Wayan · 4 min read
UTIL PACKAGE / NOTES</>↗
Util Package29 Jul 2025

How to Generate UUIDs in Java

In Java, you can generate universally unique identifiers (UUIDs) using the java.util.UUID class. Here’s how you can generate a UUID: Example Code package org.kodejava.util; import java.util.UUID; public class UUIDExample { public static void main(String[] args) { // Generate a random UUID UUID uuid = UUID.randomUUID(); System.out.println("Generated UUID: " + uuid.toString()); } } Explanation The UUID.randomUUID() […]

Wayan · 2 min read
BASIC / NOTES</>↗
Basic28 Jul 2025

How to Install Java 21 and Set Up Your Development Environment

Here’s a step-by-step guide to install Java 21 and set up your development environment: Step 1: Download and Install Java 21 Download JDK 21: Go to the official Oracle Java SE Downloads page or use Adoptium or OpenJDK for an open-source version. Download the JDK 21 version suitable for your system (Windows, macOS, or Linux). […]

Wayan · 3 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.