Home Forum
 

String Manipulation in Java

From source code,code examples

Jump to: navigation, search
Add/Edit any query string value through javascript

We usually want to change a single value within a querystring without altering entire querystring, this can be done through little string manipulation.

Basic String Statistics Calculator

it is a simple application for calculating basic statistics for a segment of text. It calculates the number of words entered by the user and the average word length by any relevant method. The application has a single window with a scrolling text box (a JtextArea) and a stats box. The stats box is a panel with titled border, containing labeled fields that display the number of words in the text box and the average word length. The stats box also contains a button that, when pressed, re-computes the statistics for the current contents of the text field.

cut contents of a page only by highLight it

you hi light a text or a picture on a page and press the button and the text you marked will disappear you can highLight a text too and press the button and write whatever you want insted of it

change the characteristic of every tag in the document (e.g. change every href of a)

Do you ever wanted to assign special characteristics to every element/object of a special type? You must have searched for a while. But now you found the right code :-)

Encrypto a text

Encryption program encrypts a string of text. It can also decrypt strings of text which have been encrypted with this program.

Format Phone Number

Enter a phone number, including the area code, and watch the script format the phone number on the fly as follows:

Java Calculator

This calculator shows you some things you can do with a string, for example changing strings with charAt, getting length, etc. It's a calculator that takes a string (for example, 5*5) and does the equation. It takes the whole string, then breaks it up, figures out which peices are the 2 numbers, and what the operation is, etc. It uses doubles so it will work with decimals. This calculator also demonstrates ifs and loops for newbies.

Java General Purpose Hash Function Algorithms

The General Hash Function Algorithm library contains implementations for a series of commonly used additive and rotative string hashing algorithm in the Java programming language.

Morse Code

This is a simple application that works as an English-to-Morse Code and Morse Code-to-English converter. So if you're interested in learning Morse Code, you can experiment with this application. I used class StringTokenizer & other string manipulations in writing this code :)

Organized String

This program will let the first element of the entered string of the user to be uppercased and the remaining string to be lowercased.

Paolo

this tutorial / code will teach you the basic fundamentals of encrypting and decrypting text. if you find it interesting, please vote for me. thanks!

A Parser

A badword filter which can filter the given set of words from a string. Works with anything, Swing,Servlet, JSP etc. Use it in your programs such as chat applets to filter unwanted words in communication.

Pretty Typing

single-small code file to create Typing the web with pretty keyboard interface.Check it! and don't forget VOTE FOR ME

ReplyWizard

Use this for indenting replies for e-mail.

String Spacer

This program simply accepts a string and displays the string with spaces.

String Reciprocator

This program accepts a string and display it's reciprocated form.

Student Roster

This is a sample Java application that allows a user to update a STUDENT ROSTER, using a vector of student objects.

StringUtils

A string manipulation utility that performs character and word swaps, string reversals, conversion to military and morse codes, and much more.

Translater

Translate text into 1337, Ebonics, and 10 year old speak. You can also translate 1337 into English and make the text rAnDOmlY CaPITalIzeD(FULLY Commented)

Thumbnail and Full Picture Viewer

Removes a substring from a thumbnails source to leave with full picture. You only need to have one picture in a page and links can be used to change the source of the photo.

Text Encoder/Decoder

Encoding and Decoding normal text

textbox to textarea

The simple concept of chat room wherin the textbox value will pass on textarea field.

Validate Whitespaces Without RegExp or Trim Function

Validating for white spaces (and black fields too) on the client-end is quiet tedious work!

Personal tools