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.

HTTPCLIENT / CATATAN</>
HttpClient06 Apr 2025

How do I send a simple GET request using Java 11 HttpClient?

In Java 11, you can use the HttpClient to send HTTP requests easily. Here’s how you can send a simple GET request using HttpClient: Full Example: package org.kodejava.net.http; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; public class SimpleGetRequestExample { public static void main(String[] args) { try { // Create an HttpClient instance HttpClient httpClient […]

Wayan · 3 menit baca
CORE API / CATATAN</>
Core API06 Apr 2025

How do I create a proxy server using ProxySelector and Socket in Java?

Creating a proxy server using ProxySelector and Socket in Java involves a few steps. ProxySelector is used to determine which proxy to use for connections, while Socket facilitates communication with the client and/or the target server behind the proxy. Here’s a step-by-step guide: 1. Setup ProxySelector A custom ProxySelector can be created to define the […]

Wayan · 5 menit baca
CORE API / CATATAN</>
Core API05 Apr 2025

How do I bind a server to a specific IP address using ServerSocket in Java?

To bind a ServerSocket to a specific IP address in Java, you need to use one of the constructors or methods that allows you to specify the local address and port to bind to. Here’s how you can do it: Example Code: package org.kodejava.net; import java.io.IOException; import java.net.InetAddress; import java.net.ServerSocket; public class ServerSocketBindExample { public […]

Wayan · 3 menit baca
CORE API / CATATAN</>
Core API04 Apr 2025

How do I detect and list all network interfaces using NetworkInterface in Java?

To detect and list all network interfaces using NetworkInterface in Java, you can use the NetworkInterface.getNetworkInterfaces() method. This returns an Enumeration of all available network interfaces on the system. You can then iterate through this enumeration to fetch details of each interface, such as the name, display name, and associated IP addresses. Here is an […]

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