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</>↗
Kotlin06 May 2025

How do I loop through items using for and while in Kotlin?

In Kotlin, you can use both for and while loops to iterate through items. Here is a quick overview of how you can use these loops with examples: 1. Using a for Loop A for loop is used to iterate through a range, array, list, or any iterable. Iterating through a range: for (i in […]

Wayan · 2 min read
CONCURRENCY / NOTES</>↗
Concurrency06 May 2025

How do I implement producer-consumer with LinkedBlockingQueue?

The LinkedBlockingQueue in Java is an implementation of the BlockingQueue interface, which is well-suited for implementing the Producer-Consumer problem. It manages a thread-safe queue where producers can add elements and consumers can take elements, with built-in thread synchronization. Here’s how you can implement a basic producer-consumer solution using LinkedBlockingQueue: Example: Producer-Consumer with LinkedBlockingQueue package org.kodejava.util.concurrent; […]

Wayan · 3 min read
SPRING CORE / NOTES</>↗
Spring Core06 May 2025

How do I use @Component, @Autowired, and @Qualifier in Spring?

Spring provides annotations like @Component, @Autowired, and @Qualifier to simplify dependency injection and make applications loosely coupled and modular. Below, we’ll explore these annotations in detail, focusing on their usage and a complete example. 1. @Component Annotation The @Component annotation marks a class as a Spring-managed bean. It is auto-detected during component scanning, and Spring […]

Wayan · 5 min read
CONCURRENCY / NOTES</>↗
Concurrency06 May 2025

How do I coordinate tasks with Phaser in Java concurrency?

Coordinating tasks with Phaser in Java concurrency involves leveraging its powerful synchronization mechanism, especially designed for dynamic scenarios where the number of threads (or parties) may change during execution. The Phaser class found in the java.util.concurrent package provides a flexible and reusable barrier, similar to CyclicBarrier or CountDownLatch, but with added versatility. Key Features of […]

Wayan · 4 min read
KOTLIN / NOTES</>↗
Kotlin05 May 2025

How do I use if expressions for decision-making in Kotlin?

In Kotlin, if expressions are used for decision-making. Unlike some other programming languages, Kotlin’s if is an expression, meaning it returns a value. This makes it more versatile because it can be directly assigned to a variable or used in a function return. Here’s how it works: 1. Basic if expression The simplest usage is […]

Wayan · 2 min read
KOTLIN / NOTES</>↗
Kotlin05 May 2025

How do I use Kotlin data types like String, Int, and Boolean?

In Kotlin, data types like String, Int, and Boolean are fundamental types that are used to work with text, numbers, and logical values respectively. Kotlin provides these types as part of its standard library, and they are straightforward to use. Below is an explanation of how to work with them: 1. String A String in […]

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.