Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java replace character

// We want to replace every # with a 8
String larry = "Larry is # years old";
String newString = larry.replace("#", "8");
 
PREVIOUS NEXT
Tagged: #java #replace #character
ADD COMMENT
Topic
Name
8+1 =