|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.util.StringManipulator
public class StringManipulator
This class adds functionality to the String mehtod
| Constructor Summary | |
|---|---|
StringManipulator(java.lang.String s)
Initialize the String |
|
| Method Summary | |
|---|---|
java.lang.String |
replace(java.lang.String toReplace,
java.lang.String replaceWith)
Replace the first occurence of toReplace with
replaceWith. |
java.lang.String |
replaceAll(java.lang.String toReplace,
java.lang.String replaceWith)
Replace all occurrences of toReplace with
replaceWith. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringManipulator(java.lang.String s)
s - | Method Detail |
|---|
public java.lang.String replace(java.lang.String toReplace,
java.lang.String replaceWith)
toReplace with
replaceWith. If toReplace is not
in the String the origianal is returned.
toReplace - String to be replacedreplaceWith - replacement for toReplaced
public java.lang.String replaceAll(java.lang.String toReplace,
java.lang.String replaceWith)
toReplace with
replaceWith. If toReplace is not
in the String the origianal is returned.
toReplace - String to be replacedreplaceWith - replacement for toReplaced
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||