[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Replace function

You cannot modify a "String". You need to use "StringBuffer" to modify it.

use :

replace(int start, int end, String str) 
Replaces the characters in a substring of this StringBuffer with characters
in the specified String.

-----Original Message-----
From: monel.a.amin@mail.sprint.com [mailto:monel.a.amin@mail.sprint.com]
Sent: Friday, October 05, 2001 10:58 AM
To: ajug-members@www.ajug.org
Subject: Replace function

Hi All,

Is there an VB's Replace function's equivalent in Java?  I need to
replace a character in a String.

Any suggestions.....