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.

KOTLIN / NOTES</>↗
Kotlin02 Jun 2025

How do I use destructuring declarations in Kotlin?

Destructuring declarations in Kotlin simplify the process of unpacking values from objects, data classes, maps, arrays, or collections into individual variables. This is particularly useful when working with complex objects or collections. Below is an explanation of how to use destructuring declarations in different scenarios. 1. Data Classes Destructuring declarations work seamlessly with data classes. […]

Wayan · 3 min read
KOTLIN / NOTES</>↗
Kotlin01 Jun 2025

How do I use !! and avoid NullPointerException in Kotlin?

In Kotlin, the !! operator is called the not-null assertion operator. It is used to tell the compiler that a null value will never be encountered for a given variable. If Kotlin encounters a null during runtime while using !!, it will throw a NullPointerException (NPE). While using !! can be convenient in some cases, […]

Wayan · 3 min read
KOTLIN / NOTES</>↗
Kotlin01 Jun 2025

How do I use smart casts in Kotlin control flow?

In Kotlin, smart casts are a feature that allows the compiler to automatically cast an object to a target type within a certain scope if it determines that the cast is safe. Smart casts are most commonly used in control flow statements, such as if, when, and loops. Here’s how you can use smart casts […]

Wayan · 3 min read
IO / NOTES</>↗
IO01 Jun 2025

How to use the new API enhancements in java.nio.file in Java 17

Java 17 introduced several significant enhancements in the java.nio.file package, focusing on improving file system operations, security, and performance. Below is an explanation of the new APIs and available enhancements, with examples demonstrating how to use them. Key API Enhancements in java.nio.file for Java 17 1. Files.mismatch() The method Files.mismatch(Path, Path) was added to efficiently […]

Wayan · 4 min read
BASIC / NOTES</>↗
Basic31 May 2025

How to compile and run Java 17 code using command line

To compile and run Java 17 code using the command line, follow these steps: 1. Install Java 17 Ensure that Java 17 is installed on your system. Run the following command to check the installed Java version: java -version If Java 17 is not installed, download and install it from the official Oracle website or […]

Wayan · 2 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.