Java Tutorial

Load and Play a MIDI Sound File in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will load and play a MIDI sound file in java. We all know that MIDI or Musical Instrument Digital Interface) is a sound designed for recording and playing back music on digital synthesizers that is supported by many makes of personal computer sound cards. It has .mid extension file. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of playMIDI.java. 2.

Count SubString in a Large String in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will have an example of Caret Event and Listener in Java. A CaretEvent lets the user notify interested parties that the text caret has changed in the event with its source. Note: A caret is the cursor indicating the insertion point So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of countSubStrings.java. 2.

Split a String in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will split a string using java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of splitString.java. 2. We will initialize variables in our Main, variable str as a String, and variable elements as a String array.

Caret Event and Listener in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will have an example of Caret Event and Listener in Java. A CaretEvent lets the user notify interested parties that the text caret has changed in the event with its source. Note: A caret is the cursor indicating the insertion point So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of caretListener.java. 2.