Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

replace array value

807601Jun 2 2008 — edited Jun 2 2008
Hi,
how to replace array value in java?
for (ex)
String input="mathi;ravi;kamal;jeeva;ram."
String str[]= input.split(";");
str[3].replace(str[3], "hai");

it is passible? pls help me
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 30 2008
Added on Jun 2 2008
6 comments
286 views