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 API16 Mar 2025

How do I use the LongUnaryOperator functional interface in Java?

Key Features of LongUnaryOperator It performs operations on long values. It has a single abstract method: long applyAsLong(long operand), which takes one long argument and returns a long result. Additional default and static methods such as andThen() and compose() allow chaining of operations. Key Methods in LongUnaryOperator long applyAsLong(long operand) Performs the operation and returns […]

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

How do I use the LongToIntFunction functional interface in Java?

The LongToIntFunction is a functional interface in Java located in the java.util.function package. It represents a function that accepts a long-valued argument and produces an int-valued result. It is a specialized form of functional interface primarily used to avoid boxing when working with primitive types. Here is a guide on how to use the LongToIntFunction […]

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

How do I use the LongToDoubleFunction functional interface in Java?

The LongToDoubleFunction is a functional interface in Java that belongs to the java.util.function package. It represents a function that accepts a long value as an argument and produces a result of type double. This functional interface is typically used in scenarios where we want to perform an operation that converts a long input into a […]

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

How do I use the LongSupplier functional interface in Java?

The LongSupplier is a functional interface in Java that is part of the java.util.function package. It represents a function that supplies a long-valued result. This interface is particularly useful when we need to generate or provide long values without requiring input arguments. Since LongSupplier is a functional interface, it has a single abstract method: long […]

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

How do I use the LongPredicate functional interface in Java?

In Java, the LongPredicate is a functional interface introduced in Java 8 as part of the java.util.function package. It represents a predicate (a boolean-valued function) that takes a single long value as its input argument. The key method in LongPredicate is: boolean test(long value); Here’s how we can use the LongPredicate functional interface: Example Usage […]

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

How do I use the LongFunction functional interface in Java?

The LongFunction is a functional interface in Java present in the java.util.function package. It represents a function that takes a long as input and produces a result of a specified type. Key points about LongFunction: 1. Single Abstract Method: It contains a single abstract method: R apply(long value); Here, R is the return type of […]

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.