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.

UTIL PACKAGE / CATATAN</>
Util Package29 Jul 2025

How to Generate UUIDs in Java

In Java, you can generate universally unique identifiers (UUIDs) using the java.util.UUID class. Here’s how you can generate a UUID: Example Code package org.kodejava.util; import java.util.UUID; public class UUIDExample { public static void main(String[] args) { // Generate a random UUID UUID uuid = UUID.randomUUID(); System.out.println("Generated UUID: " + uuid.toString()); } } Explanation The UUID.randomUUID() […]

Wayan · 2 menit baca
BASIC / CATATAN</>
Basic28 Jul 2025

How to Install Java 21 and Set Up Your Development Environment

Here’s a step-by-step guide to install Java 21 and set up your development environment: Step 1: Download and Install Java 21 Download JDK 21: Go to the official Oracle Java SE Downloads page or use Adoptium or OpenJDK for an open-source version. Download the JDK 21 version suitable for your system (Windows, macOS, or Linux). […]

Wayan · 3 menit baca
LANG PACKAGE / CATATAN</>
Lang Package27 Jul 2025

How to Use StringBuilder for Efficient String Concatenation

In Java, using StringBuilder is a common way to handle efficient string concatenation, especially when working with loops or when you need to concatenate a large number of strings. Unlike String, which is immutable, StringBuilder is mutable and modifies its internal character array without creating new objects, hence improving performance. Here’s how you can use […]

Wayan · 3 menit baca
BASIC / CATATAN</>
Basic26 Jul 2025

How to Format Strings Using String.format()

In Java, the String.format() method is a convenient way to create formatted strings using placeholders. It allows you to include values such as numbers or strings at specific positions in a string by using format specifiers. Here’s how you can use it: Syntax String.format(String format, Object… args) format: The format string with placeholders. args: The […]

Wayan · 2 menit baca
SPRING MVC / CATATAN</>
Spring MVC25 Jul 2025

How do I map a request to a controller in Spring MVC?

In Spring MVC, you can map a request to a controller using the @RequestMapping (or aliases like @GetMapping, @PostMapping, etc.) annotation on a method. These annotations define a specific URL path and HTTP method that the method will handle. Here’s how you can do it: Step-by-Step Instructions: Annotate the Class as a Controller: Use the […]

Wayan · 3 menit baca
SPRING BOOT / CATATAN</>
Spring Boot24 Jul 2025

Testing Spring Boot Applications with JUnit and Mockito

Testing Spring Boot applications with JUnit and Mockito is a good practice to ensure the correctness and reliability of your application. Below, I’ll present a brief overview of how to write such test cases with explanations and examples. 1. JUnit Basics in Spring Boot Spring Boot provides out-of-the-box support for JUnit through the spring-boot-starter-test dependency, […]

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.