Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java replace character in string

String s = "new String";
String replaced = s.replace("new","Test");
							  ^		 ^
                             old    new char
 
PREVIOUS NEXT
Tagged: #java #replace #character #string
ADD COMMENT
Topic
Name
5+3 =