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.

CONCURRENCY / NOTES</>↗
Concurrency04 May 2025

How do I avoid thread safety issues using concurrent collections?

When working with concurrent collections in Java, thread safety issues can be minimized or completely avoided by using the right tools and patterns provided by the Java concurrency library. Here are some guidelines for avoiding thread safety issues using concurrent collections: 1. Use Concurrent Collections Java provides a range of thread-safe collections in the java.util.concurrent […]

Wayan · 4 min read
SPRING CORE / NOTES</>↗
Spring Core04 May 2025

How do I create my first Spring bean using XML configuration?

Creating your first Spring bean using XML configuration is a straightforward process. Here’s a step-by-step guide: 1. Add Spring Framework to Your Project Make sure you have Spring dependencies added to your project. If you’re using Maven, include the following dependencies in your pom.xml: <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>6.2.6</version> <!– Update to a stable version –> […]

Wayan · 3 min read
JAVA 10 / NOTES</>↗
Java 1004 May 2025

How do I use new Java 10 methods like List.copyOf(), Set.copyOf(), and Map.copyOf()?

Java 10 introduced the List.copyOf(), Set.copyOf(), and Map.copyOf() methods as convenient ways to create unmodifiable copies of existing collections. These methods are part of the java.util package and provide a simpler way to create immutable collections compared to using older methods like Collections.unmodifiableList(). Here’s how you can use them: 1. List.copyOf() The List.copyOf() method creates […]

Wayan · 3 min read
CONCURRENCY / NOTES</>↗
Concurrency04 May 2025

How do I use CountDownLatch to wait for other threads to finish?

In Java, the CountDownLatch is a synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads is complete. It is part of the java.util.concurrent package. How It Works A CountDownLatch is initialized with a given count. Each time one of the threads completes its task, […]

Wayan · 3 min read
TOOLS / NOTES</>↗
Tools03 May 2025

How do I install and manage multiple Java versions with SDKMAN?

SDKMAN (Software Development Kit Manager) is a command-line tool that allows you to manage multiple versions of Java and other SDKs easily. Here’s how you can install and manage multiple Java versions using SDKMAN: Step 1: Install SDKMAN Open your terminal. Run the following command to install SDKMAN: curl -s "https://get.sdkman.io" | bash Follow the […]

Wayan · 2 min read
JSCH / NOTES</>↗
JSch03 May 2025

How do I execute multiple commands sequentially using JSch ShellChannel?

To execute multiple commands sequentially using JSch’s ChannelShell, you need to establish a persistent shell session and then pass the commands in sequence. The ChannelShell uses an input and output stream to communicate with the remote host. Here is a step-by-step approach and a sample implementation: Steps to Execute Commands Sequentially Initialize the JSch session: […]

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