Ruang penulis
SEBUAH JURNAL TENTANG TEKNOLOGI

Belajar hal baru.
Tulis. Bagikan.

Ruang untuk merangkai pengetahuan, satu baris kode setiap hari.
Temukan tutorial, ide, dan catatan dari perjalanan belajar.

1914 catatan & terus bertumbuh
PILIHAN EDITOR
Java

Memahami Java Stream: olah koleksi dengan lebih ringkas

Pelajari alur filter, map, dan collect untuk mengolah data Java dengan kode yang mudah dibaca.

D Tim Diary Coding · 1 menit baca
UNTUK RASA INGIN TAHUMU

Catatan terbaru.

TOOLS / CATATAN</>
Tools03 Mei 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 menit baca
JSCH / CATATAN</>
JSch03 Mei 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 menit baca
CONCURRENCY / CATATAN</>
Concurrency03 Mei 2025

How do I use BlockingQueue to pass data between threads?

To use a BlockingQueue to pass data between threads in Java, you can follow these steps: 1. Understand BlockingQueue BlockingQueue is part of the java.util.concurrent package and is designed for thread-safe communication between producer and consumer threads. It provides methods such as put() and take(), which handle blocking behavior: put(E e): Blocks if the queue […]

Wayan · 4 menit baca
CONCURRENCY / CATATAN</>
Concurrency03 Mei 2025

How do I gracefully shut down an ExecutorService?

To gracefully shut down an ExecutorService in Java, you should follow these steps: Call shutdown(): This will prevent the ExecutorService from accepting any new tasks while allowing already submitted tasks to be completed. Wait for Termination: You can use awaitTermination(long timeout, TimeUnit unit) to wait for a specified amount of time for all tasks to […]

Wayan · 3 menit baca
JSCH / CATATAN</>
JSch02 Mei 2025

How do I set up port forwarding using JSch?

Port forwarding is a technique commonly used to access remote services, such as databases or web applications, via SSH. Using Java, you can achieve this by leveraging the JSch (Java Secure Channel) library. Below, you’ll find a step-by-step guide to setting up port forwarding. 1. Understanding Port Forwarding with JSch Port forwarding allows you to […]

Wayan · 5 menit baca
CONCURRENCY / CATATAN</>
Concurrency02 Mei 2025

How do I submit multiple tasks and get results using invokeAll?

To submit multiple tasks and get results using invokeAll in Java, you can make use of the ExecutorService. The invokeAll method submits a collection of Callable tasks to the executor and waits for all of them to complete. Once completed, it returns a list of Future objects, each representing the result of a corresponding task. […]

Wayan · 3 menit baca

Pengetahuan tumbuh ketika dibagikan.

Simpan rasa ingin tahu. Selalu ada hal baru untuk dipelajari.

Jelajahi catatan ↗
Putu Adi Guna Permana
TENTANG PENULIS

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

Penulis dan pendiri Diary Coding — berbagi catatan, tutorial, dan pengalaman seputar pemrograman untuk siapa pun yang ingin terus belajar.