Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to modify string in java

// Simply, create a new string with character replaced, because strings are immutable in java

String myName = "domanokz";
String newName = myName.substring(0,4)+'x'+myName.substring(5);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #modify #string #java
ADD COMMENT
Topic
Name
2+8 =