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.

SOUND API / NOTES</>↗
Sound API18 Apr 2025

How do I capture microphone input using TargetDataLine?

To capture microphone audio input using the TargetDataLine class in Java, you can use the javax.sound.sampled package. Here’s a step-by-step explanation of how you can achieve this: Steps to Capture Microphone Input Prepare the Audio Format: Define an AudioFormat object, specifying the audio sample rate, sample size, number of channels, etc. Get the TargetDataLine: Use […]

Wayan · 4 min read
SOUND API / NOTES</>↗
Sound API17 Apr 2025

How do I check the supported audio format in Java Sound API?

In the Java Sound API, you can check if your system supports a particular audio format by using the AudioSystem.isConversionSupported and AudioSystem.getTargetEncodings methods. You can also determine if a particular AudioFormat is supported by querying the DataLine.Info object when working with audio input and output lines. Here’s a breakdown of how you can check: 1. […]

Wayan · 3 min read
SOUND API / NOTES</>↗
Sound API17 Apr 2025

How do I control volume using FloatControl in Java?

In Java, the FloatControl class (part of the javax.sound.sampled package) is used to control a range of floating-point values that typically represent certain properties of an audio line, such as volume, balance, or sample rate. To control volume using FloatControl, you need access to an AudioLine (specifically a SourceDataLine or Clip), which supports volume control. […]

Wayan · 3 min read
SOUND API / NOTES</>↗
Sound API17 Apr 2025

How do I load and play a .wav file using AudioSystem?

To load and play a .wav file using the AudioSystem class in Java, you can use the Clip interface from the javax.sound.sampled package. The AudioSystem class provides methods to get an audio input stream and obtain a clip to play the sound. Here’s a step-by-step guide, including example code: Steps: Import required packages from javax.sound.sampled. […]

Wayan · 3 min read
SERVLET / NOTES</>↗
Servlet17 Apr 2025

How do I include content from another servlet or JSP?

To include the content of one servlet or JSP into another, you can use the functionality provided by the RequestDispatcher interface in Jakarta Servlet (previously Javax Servlet). The two primary methods for including content are: Using RequestDispatcher.include(): This method includes the response of another servlet or JSP within the response of the current servlet or […]

Wayan · 3 min read
SERVLET / NOTES</>↗
Servlet17 Apr 2025

How do I forward requests with RequestDispatcher?

In Java, the RequestDispatcher is used to forward a client’s request to another resource, such as a servlet, JSP, or HTML file. This is common when you want to break down the processing of a request into multiple components. Syntax to Use RequestDispatcher The RequestDispatcher interface provides two main methods to forward or include content: […]

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.