SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

JAVA 8 / NOTES</>↗
Java 812 Jan 2024

How do I use Collectors.toSet() method?

The Collectors.toSet() method is a method from the java.util.stream.Collectors class that provides a Collector able to transform the elements of a stream into a Set. Here’s an example of using the Collectors.toSet() method: package org.kodejava.stream; import java.util.Arrays; import java.util.List; import java.util.Set; import java.util.stream.Collectors; public class CollectorsToSet { public static void main(String[] args) { List<String> fruits […]

Wayan · 2 min read
JAVA 8 / NOTES</>↗
Java 812 Jan 2024

How do I use Collectors.toList() method?

The Collectors.toList() method is a convenient method in the java.util.stream.Collectors class that provides a Collector to accumulate input elements into a new List. Here is a simple example of how to use Collectors.toList(): package org.kodejava.stream; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; public class CollectorsToList { public static void main(String[] args) { List<Integer> numbers = Arrays.asList(1, […]

Wayan · 1 min read
JAVA 8 / NOTES</>↗
Java 812 Jan 2024

What are collectors in Java Stream API?

In Java, the Collector is a concept in the Stream API which provides a way to collect the results of various operations in the stream. It is used in conjunction with the collect method of the Stream interface. The collect method allows you to accumulate the elements of the stream into a summary result. Here’s […]

Wayan · 3 min read
JAVA 8 / NOTES</>↗
Java 810 Jan 2024

How do I use sorted method in Java Stream API?

In the Java Stream API, the sorted() method is used to sort elements in a stream. The sorted() method returns a stream consisting of the elements of the original stream, sorted according to natural order. If the elements of the stream are not Comparable, a java.lang.ClassCastException may be thrown when the terminal operation is executed. […]

Wayan · 3 min read
JAVA 8 / NOTES</>↗
Java 810 Jan 2024

How do I use limit method in Java Stream API?

The limit(long maxSize) method in Java’s Stream API is used for reducing the size of the stream. It takes a single parameter, maxSize, which is a long value that represents the maximum number of elements that the stream should be limited to. The primary purpose and usefulness of the limit() method can be summarized as […]

Wayan · 2 min read
SOUND API / NOTES</>↗
Sound API10 Jan 2024

Introduction to Java Sound API

The Java Sound API is a feature of the Java platform, designed to provide low-level support for audio operations such as audio playback and capture (recording), audio format conversions, and sequencing and synthesizing of MIDI (Musical Instrument Digital Interface) Overview Java Sound API, included in the Java SE (Standard Edition), is a powerful and flexible […]

Wayan · 4 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

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

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.