String

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.

Decode String into Integer in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will decode a string into integer in java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of decodeNumberSystem.java. 2. We will initialize variables in our Main, variable named decimal,octal,and hexa as String.

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.

Disable an Input Character in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will disable a specific input of a character in java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of disableInputChar.java. 2. Import the swing package library: import javax.swing.*; // used to access the JComponent,JFrame,JTextField, and KeyStroke class 3. We will initialize

String Structure Checker in Javascript

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a structure checker for basic plain text in Javascript. Why? This tool would be used for ensuring data that is getting parsed through functions, databases and/or files is in the correct format and would not cause an error. This example tool is for removing multiple spaces at once, for example; ->Hi there! would be replaced with: ->Hi there! HTML: The HTML is basic HTML and just includes two textareas.

Count Number of Characters

Submitted by donbermoy on
In this article, we will create a program that can count all the characters of a text inputted in a TextBox. Now, let's start this tutorial! 1.Let's start this tutorial by following the following steps in Microsoft Visual Basic 6.0: Open Microsoft Visual Basic 6.0, click Choose Standard EXE, and click Open. 2.Next, add only one Button named Command1 and labeled it as "Count Characters". Add also TextBox named Text1 for our input.