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.

CORE API / CATATAN</>
Core API02 Apr 2025

How do I stream large files over a network using Socket in Java?

Streaming large files over a network using sockets in Java requires splitting the file into manageable chunks to avoid memory overhead, as well as safely reading and transmitting data between the client and server. Below is a step-by-step guide with code to demonstrate how to achieve this. Key Steps: Open a file stream to read […]

Wayan · 4 menit baca
CORE API / CATATAN</>
Core API01 Apr 2025

How do I handle HTTP redirects in Java using HttpURLConnection?

Handling HTTP redirects in Java using HttpURLConnection is fairly straightforward. It involves processing the HTTP response code and manually following the redirection if the server responds with a 3xx status code. Here’s a step-by-step guide: 1. Set up the HTTP connection: Create a HttpURLConnection instance and configure it for the initial request. Set the allowed […]

Wayan · 3 menit baca
CORE API / CATATAN</>
Core API31 Mar 2025

How do I check internet connectivity and ping a server using InetAddress in Java?

You can use Java’s InetAddress class to check internet connectivity and ping a server directly. Here is how you can do it: Steps to check internet connectivity and ping a server: Use InetAddress.getByName(String host) or InetAddress.getByAddress(…) to get the address of the host/server you want to ping. Use the isReachable(int timeout) method to test if […]

Wayan · 2 menit baca
CORE API / CATATAN</>
Core API29 Mar 2025

How do I use CookieManager and CookieHandler for HTTP Cookie handling in Java?

In Java, the CookieManager and CookieHandler classes from the java.net package are used for handling HTTP cookies. They allow you to manage cookies for actions such as sending cookies with HTTP requests or maintaining sessions between HTTP communications. Steps to Use CookieManager and CookieHandler Set a Global CookieManager: The CookieHandler class is an abstract class, […]

Wayan · 3 menit baca
CORE API / CATATAN</>
Core API28 Mar 2025

How do I implement secure socket communication with SSLSocket and SSLServerSocket in Java?

To implement secure socket communication using SSLSocket and SSLServerSocket in Java, you need to utilize the Java Secure Sockets Extension (JSSE) API, which provides support for the SSL/TLS protocols. Below is a step-by-step guide: 1. Key Concepts SSL/TLS provides encryption and ensures secure communication between a client and server. You need: A keystore on the […]

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