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 821 Jan 2024

How do I use Collectors.maxBy() method?

The Collectors.maxBy() method is used to find the maximum element from a stream based on a certain comparator. It returns an Optional which contains the maximum element according to the provided comparator, or an empty Optional if there are no elements in the stream. Here’s a simple example where we have a list of integers, […]

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

How do I use Collectors.minBy() method?

The Collectors.minBy() method in Java 8 is used to find the minimum element from a stream of elements based on a certain comparator. It returns an Optional describing the minimum element of the stream, or an empty Optional if the stream is empty. Here’s an example of how to use Collectors.minBy(). Assume we have a […]

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

How do I use Collectors.counting() method?

The Collectors.counting() method is a terminal operation that returns the count of elements in the particular stream where it is used. This is part of the java.util.stream.Collectors in Java 8. Here is a simple example of how to use Collectors.counting(). Suppose we have a list of strings, and we want to count the number of […]

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

How do I use Collectors.toCollection() method?

The Collectors.toCollection() method is a static method in the java.util.stream.Collectors class of Java 8. This method is used with streams when you want to convert a list to another collection type. Here’s a simple example of how to use the method: package org.kodejava.stream; import java.util.*; import java.util.stream.Collectors; public class CollectorsToCollection { public static void main(String[] […]

Wayan · 2 min read
ITEXT PDF / NOTES</>↗
iText PDF21 Jan 2024

How do I create a PDF document using iText 8?

iText 8 is an open source library for creating and manipulating PDF files in Java. It’s a successor to iText 7, providing more advanced features and capabilities for transforming documents into PDF format. iText 8 supports the creation and manipulation of PDF documents, and offers various functionalities to enhance your PDF generation requirements. With iText […]

Wayan · 3 min read
UTIL PACKAGE / NOTES</>↗
Util Package21 Jan 2024

How does Base64 encoding work?

Base64 encoding scheme is designed to encode binary data, especially when that data needs to be stored and transferred over media that designed to deal with text. Base64 encoding helps to ensure that the data remains intact without modification during transport. Base64 is a group of similar binary-to-text encoding schemes that represent binary data in […]

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