Tutorials

Data Types in Java

Submitted by donbermoy on
This tutorial will teach you how to understand what are the variables in java. A data type refers to the type of data that can be stored in a variable, means that a variable needs a data type to save space in the memory for allocation. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of variables.java. 2. Now, we will initialize variables with their own data types in java. An int data type contains a whole number.

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.