Hi,
I'm new to java, I was wandering if there is a way to replace a substring within a string. e.g. say I've got a string : string1 = "Hello this is a string and it is pointless!" I could replace all the occurances of a word(say "is"
with another word (eg. string1 becomes "Hello this WAS a string and it WAS pointless!"
Is that possible or does anyone have any code that would do that?
TIA
I'm new to java, I was wandering if there is a way to replace a substring within a string. e.g. say I've got a string : string1 = "Hello this is a string and it is pointless!" I could replace all the occurances of a word(say "is"
TIA